Answer Questions
M_Hagen Please help - How to get the Path of Executable of a Windows Service...
Dear Experts, I would like to get the parameter "Path to Executable" of a Windows Service programmatically. As you know, we can use Service MMC snap-in (Control Panel --> Services) to adminstrate Windows Services. If you right click any one of the Windows Services and then choose Properties , you would see the Service snap-in. In the Service snap-in, there is an item called "Path to Executable" that shows you the ori ...Show All
nightwish multiline linklabel ???
hi, How can i have a multilined linklabel thanks but why it is not possible for me to import it do i have to have this namespace to have a multilined label Visual Studio 2005 already supports multiline link labels. In the linklabel's properties, just select the "Text" field then click the dropdown arrow next to it. Then just enter the lines that you want. ...Show All
ly4587 .
. . . I duplicated your Process.WaitForExit( int) problem, probably should report that as a bug. I didn't have a problem with the event handler though. I used a Console app to test and it worked just fine. My guess (just a guess) is that your GUI thread is blocked waiting on something (the Thread to finish ) suc ...Show All
George Neo Accessing WDSQuery.dll from MSAccess
Hello, we would like to integrate desktop search queries in one of our MSAccess applications through the visual basic interface. The SDK does not help, we cannot reference WDSQuery.dll, how could we do Hello Stalwart, To make sure I get you the correct answer, could you please let me know which version of WDS you are working with I'm assuming 2.6.5, but I want to be sure so I don't provide you with ...Show All
Bhupati Error while trying to compile website with multiple projects
I have a website project that contains 4 seperate projects (ASI, ASI.ASIBasePage, ASI.DataAccess, ASI.Framework) and I have added the references to each of these in my project as well. The project was working fine until today when I changed a line of code in the DataAccess object and now when I try to debug, it gives me the following error: In a MessageBox, this appears: Source File: C:\Projects\ASI.DataAccess.cs Module: C:\Windows\Microsoft. ...Show All
Alexon error reporting?
How can I shut off the feature that wants to report errors to Microsoft whenever I run a C# program that has an error I am talking about the standard...an error has occured and it wants to send a summary of the error via an internet connection to MS. Thanks, Alex That error reporting is a windows thing. It is the same box that pops up when any program crashes with an exception. The best way to not let t ...Show All
Albert Yen Using GetFiles
I want to retrive all the files in a directory of certian types (.bmp, .jpg, .gif) etc etc. But I seem to only be able to pass in a single filter to the function, is this by design filesInDirectory = Directory.GetFiles(PictureDirectory, "*.jpg"); Works fine but: filesInDirectory = Directory.GetFiles(PictureDirectory, "*.jpg;*.bmp"); Does not work correctly at all, Is there any way to do this, without calling multiple times and joining arrays ...Show All
Paul B M the type initializer for <Module> threw an excpetion ...???
Hi All I have .Net solution with bunch of c++ and c# projects with .In Debug mode the application is working fine.When I build the solution in release mode and try to run the application I am getting the strange error "The the type initializer for <Module> threw an excpetion The C++ Module failed to load during native initialization".The problem with it is not throwing any error in deb ...Show All
Xiongxiong2007 Code View, "Types" dropdown only contains "Form1". How do I get controls and their methods?
I'm looking at the Code View of my form - Form1.cs. At the top, the "Types" dropdown contains only <project name>.Form1, and the "Members" dropdown lists the controls on the form, grayed out with a blue icon next to them. The form has a DataGridView control on it. I would like to see the available methods for this control, and add code for the appropriate one. Previously, in VS2003, I would select "DataGridVie ...Show All
Gerardo Cignarella How to change the color of a substring?
for example: string newStr = "The color is red"; label1.Text = newStr; output: The color is red A label won't do this, not in a winforms app ( in a web app you can insert HTML to make it work ). You'd need to write your own control, I don't think there's a multi font or multi color label in the framework. The other alternative is just to draw the text yourself, or use two labels with 2 colors. it's a ...Show All
JWhitted How can I identfy a clients email server and also the clients local email address?
In the previous version of Visual Studio I used the following code to send email System.Web.Mail.MailMessage msg = new System.Web.Mail.MailMessage(); msg.To = "john@yahoo.com"; &nbs ...Show All
Jr.Coder Desktop search does not think Outlook is installed
I recently installed windows desktop search on my XP SP1 machine running Exchange 2003 in cached mode connecting to an Exchange 2003 server. Windows desktop search won't let me select Outlook because it doesn't think I have it installed. I checked from IE and Outlook is set to my default mail client. Any suggestions of other things to check is appreciated, searching through my mailbox and .PST files would be great! Thanks. ...Show All
Selim Yucel Thread Synch and Monitor: How to handle Value Types, and Private Locking to Avoid Deadlocks
I've been doing some reading on the Monitor class for thread synchronization. Four questions have come up. Here's a pretty good example from the MSoft docs of synchronizing access by using Monitor around a critical area of code: class MonitorSample { //Define the queue to safe thread access. private Queue m_inputQueue; public MonitorSample() { m_inputQueue = new Queue();   ...Show All
draykula formating a slave drive with c#
I have been looking around for this question for so long. Does anyone know how to access a slave drive or network drive through C# to format it This link might help you: http://msdn.microsoft.com/library/default.asp url=/library/en-us/shellcc/platform/shell/reference/functions/shformatdrive.asp Ultimately, whoever writes the wrapper will have to call the Unmanaged code. ...Show All
Ken_Hosinski get device info
i want to get the unque MAC address and network IP address of the machine. The name 'sDomain' does not exist in the class or namespace The name 'sPwd' does not exist in the class or namespace The name 'RemoteHost' does not exist in the class or namespace To get the MAC address and IP of a remote or local machine you can use WMI. Here is a little example: ManagementObjectSearcher query1; ManagementObjectCo ...Show All
