pmanisekaran's Q&A profile
Visual Studio Express Editions Still Problems Muting
i was givven this code a day or so ago to mute the computer .... i have tride and tride and tride but cannot get it to work Public Class Form2 Private Sub PictureBox1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox1.Click My .Computer.Keyboard.SendKeys(Keys.Volumemute) End Sub this is the link to the Orig post http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=531900&SiteID=1&mode=1 See my answer on this thread ... ...Show All
Visual Studio Express Editions Browser
Hi, I am using some code somone on this forum suggested to make a tabbed web browser. I would like to be able to change the text of a label (controls name is StatusTextBox) on a status bar control. When in try adding this code; StatusTextBox.text="Loading" for the navigating event and StatusTextBox.text="P age Loaded" for the navigated event it comes up with an error saying "Reference to a non-shared member requires an object reference". Whats wrong with it. This is the code: (I have cut some irrelevant parts out) Public Class Form3 Public Class WebBrowserTabPage Inherits System.Windows.Forms.TabPage Private WithEvents WebBrowser As WebBrowser Public Event Navigating( ByVal sender ...Show All
.NET Development top-level param default value is ignored
Hi, I have the following line right after the output element in my xslt file: <xsl:param name="selectedColorScheme" select="'default'" /> I set a breakpoint after this point so that I could check the value of "selectedColorScheme" and it shows up as null instead of the string "default". If I change it to a variable instead of a parameter, it works. Unfortunately, that doesn't give me the flexibility of passing in an override value. Am I missing something here Fair enough and I have now confirmed it using the following scenarios. 1) No reference to the param. -- The param statement is skipped and the value is null. 2) Param referenced later in a top-level var ...Show All
Visual C# how to get value of finite element?
If i want to get 5 in this example: /item/<slash:comments>5</slash:comments>, just using: XmlNode xnd = doc.SelectSingleNode("/item/slash:comments"); ...then.... xnd.innerText; i had tried "/item/comments" and "/item/slash:comments", neither of them works fine.how can i get 5? oh,cannot find forums for xml/xpath, I assume then that "slash" is a namespace. In that case you are in for a world of hurt. The XPath parser requires that if you are going to parse documents with namespace prefixes then you must first define all the namespaces for the parser and then you must ensure that all queries for all elements use all the namespace pre ...Show All
Visual Studio VS 2005 Addins to right-click menu
Hello guys, I try to create VS2005 addin to Team Explorer right-click menu. The idea is: When you open Source Control Explorer, choose the project and right-click on it you'll get the menu. You can choose: <Get Latest Version> and etc from this menu. My purpose to add my own command (Ex: Custom Get) to this menu. Most of the topics I've found in Google are describe how to add command to main command bar - like Tools-><Your command>, but I haven't found anything about right click menu. Please help.... Thanks FileMon: http://www.microsoft.com/technet/sysinternals/FileAndDisk/Filemon.mspx ...Show All
Smart Device Development Copy files using ActiveSync connection
Hello, I am developing an application that at the end of the day saves all the work done in Text files. (this text files are to be read by an application in the computer) Is there any way for me to manage the file transfer of the files, between the device and the computer What i want to do is: Once the device gets connected to the activeSync, my application (application in the device) should detect it and then transfer files to the computer, and then get some other files from the computer. I want to send and get files from the computer once an activesync connection is established. Can you help me Is this possible to do The Mobile Device has Windows CE.net 4.2. I am using Visual Studio 2003 to d ...Show All
Visual C++ Compiling DirectShow source code from MS Press: missing mmstream.h
I've VC6++ and VS8 installed on my PC for several Digital Vieo projects. I'm reading Programming Microsoft DirectSow for Digital Video and Television (by Mark Pesce; MS Press) and just want to compile the DSRender example in VS8 (sure I could do in VC6, but I want to start with VS8). The examples have been done for VC7. The comiplation error is: DSRender.h(22) : fatal error C1083: Cannot open include file: 'mmstream.h': No such file or directory So I searched for mmstream.h and found it in VC98\Include (in core VC6++) but not VS8 or SDKs... How can I compile such projects in VS8 Hello For those among you who are still struggling with this problem at this tim ...Show All
SQL Server The 4000 character limit for expressions
I am building rather large SQL statements using expressions and I am about to hit the 4000 character limit. First, what were the reasons for setting such a low limit With it in place you are forced to come up with other solutions, but perhaps that was the intention. Speaking of limits, what are the limits for storing a value in a string that is defined in a package configuration file What are the limits when creating a string within a script task and then use it to set a string variable in the package What are the limits when using a string value as an input parameter to an Execute SQL Task using OLE DB Do these differ depending on the connection type I guess I'm getting a bit paranoid about limits, but I don't want to hit any other ...Show All
Visual Studio Cannot Edit a Macro: "Class Not Registered"
Hi; I'm trying to edit a macro that I've recorded in VS 2005. I have been able to edit macros before, but not now (for some reason unknown to me). I've fixed this problem before by performing a repair reinstall, but I want to know what is at the root of this problem, as repair reinstalls tend to take up a lot of time. In Macro Explorer, I right-click on TemporaryMacro, click on "Rename" - and I renamed it to Macro01 - OK - no prob. I then right-click on the macro, click on "Edit" - and nothing happens. I also did the following: Tools > Macros > Macro IDE ... ... and I get a message box, with the error message "Class Not Registered." The following registry keys are set as follows: -=-=-=-=-=-=-=-=-=-=-= ...Show All
Visual Studio Express Editions ClickOnce Data Files are Lost!
Hi, I have an application that I deployed using ClickOnce. The application was Installed on user's computers and it included two CSV files. The application is working fine, but now I want to add an additional function. The users need to save the CVS files to a floppy or memory stick, exchange them with other users and load other users data files on their systems. I thought that they could use Windows Explorer, navigate to the folder wher the CSV files were stored and copy them to a floppy or memory stick, but I can't find the files on that were installed. In fact, I can't even fine the installed application! Where, oh where does ClickOnce install these files I obviously do not kno ...Show All
SQL Server sqljdbc DriverManager.getConnection Hangs after mirror failover.
When performing a failover the DriverManager.getConnection method never returns from it's call. I used a modified version of the test program included in the sqljdbc help file (below). If the principle server is server2 and a failover is performed, the program works just fine. If the priciple server is server1 and a failover is performed, the hang occurs. The sql servers are not on a domain, are in the same workgroup, have certificates setup between them. Sqljdbc version used is 1.1.1501.101. I rolled back to version 1.1.1320.0 and the DriverManager.getConnection exceptioned. Not sure if this is a setup issue or a common problem. Anyone have any suggestions or seeing similar issues Thanks - tc Version 1.1.1501.101 - Syst ...Show All
Visual Studio Express Editions some more questions :p
yep, its me again and i have some more questions xD 1) how can i create a picturebox in the code itself like when i click button1 then there is a picturebox created 2) i want my 'if' thing to have 2 things in it (like if (MyInt == 0 and MySecondInt == 5)), how do i do this, as 'and' didnt work 3) u can write things in a combobox, but how can i disable that u write things in it 4) u can check and uncheck a radiobutton by clicking it, but how can i do that u cant check and uncheck it by clicking the radiobutton (i have some other ways to check/uncheck the radiobutton) thx in advance oh and i still dont understand where exactly i need to put this: (for in the frmsplash thing) private void ...Show All
SQL Server Email subscriptions: changing "from" address for different subscriptions on same server
I doubt this is possible, but can someone think of a way to change the email address used for sending report subscriptions based on the report or subscription It's a need that I've heard from a number of different clients. Scenario: a company has one reporting services server with reports running from numerous departments. Report subscriptions are sent to internal and external email addresses and there's a business need to use different "from" addresses based on the report (or audience). Unfortunately this isn't really possible without doing some messing around. You can make a call to the RS WMI provider to change the SenderEmailAddress value, but you would have to synchronize the code making ...Show All
Windows Forms
Who can tell me what I should do to the error: Error 1 An error occurred while validating. HRESULT = '80040155' This error appears when I try to make a setup project with visual studio 2005 standard version. By Error help: There was a problem accessing a file or folder while building a deployment project. There are several situations that can cause file or folder access errors. When building, files are built in an output directory specified by the Output file name project property. Each time you build or rebuild, files are deleted and then re-created. If the deployment project references files outside of the project directory, those files should not be moved or deleted. To correct this error If the O ...Show All
Visual Studio 2008 (Pre-release) Extension Methods / Property conflict when they have the same name
I have a question regarding how properties of the same name as an extension method are resolved. In the following example, i'd like q3 to compile. I understand the compiler might have issues with the name conflict, but there is a valid extension method, and the compiler is getting hung up because there is also a property. It can resolve it if i explicitly supply the generic type as in q4 - Why can't it be smart enough to do it for q3 List < int > nums = new List < int > { 0,1,2,3,4,5,6,7,8,9 }; int q1 = nums.Count; // works - uses the property on List<T> int q2 = nums.Count(); // fails: 'System.Collections.Generic.List<int>.Count' is a 'property' but is used like a 'method' - doesn' ...Show All
