Answer Questions
dehinson VS2005 Installs, Compiles, Doesn't run simple C# programs
I've installed VS2005. It installed fine, and if I do a new C# windows project, it will apparently compile it. If I try running that program, it does nothing. I can do the same steps on another machine, and everything works fine. I can copy an executable built on the other machine to this machine, and it runs fine. Here's a partial dump of the output 'WindowsApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\Syste ...Show All
Cesar.NET how to use trimend
can any one help me to understand a role of this method "trimend()"with an exemple This must be self-explaning code: string myString = "A string "; // Removes all whitespaces at the end of the string myString = myString.TrimEnd( ' ' ); myString = "A string__________________________"; // Removes all underscores at the end of the string myString = myString.TrimEnd( '_' ); thanks ...Show All
SD_Stu serialPort Questions
I tried unsuccessfully to use the DataReceived event to read data from the serial port. It gives a thread exception and I cannot figure out what the error message is trying to tell me. So I put a button on the form and added: private void button2_Click( object sender, EventArgs e) { while (serialPort1.BytesToRead > 0) { char [] c = new char [serialPort1.BytesToRead]; & ...Show All
gary_gill Serial Port Problem
Hi, I'm recieving data from the serial port every 20 ms. I use interrupts to read the data from the buffer (port.ReadByte()). Does the ReadByte function automatically clear the recieve buffer of the serial port Thanks, Bruce You can use DiscardInBuffer and DiscardOutBuffer to clear the buffer. ...Show All
Aelphaeis_Mangarae Retrieve System Up Time Err:(input string was not in correct format)
I have a windows service program that checks the system up time. It works for most users that use it but a small few are getting this error: Exception: Input string was not in a correct format. Stack Trace: at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at System.Int32.P ...Show All
Yogita Manghnani HOW to Kill ActiveX application..
Hi, I'm developing a application which uses activex plugin (used to load map files) it works fine in .net the problem is while closing the application the application won't close properly i mean application will be in task manager and manually go to task bar and kill the application. I tried the manually Killing the app using process class in vb.net but the same thing is not working in c# . Is there some other method to kill the applicatio ...Show All
xchiaroni CallBack from a WIN 32 C++ dll
Hello Everyone, My application is written under C#, but for some of the low level stuff I have to use C++ dll's and one of the dll require password before I can make some function call or if user entered wrong should ask again..... How can I implement something along those lines.... At first I can send the pasword, but if the password is wrong what is the way to get the password....If you want I can even post my procedure which asks for ...Show All
aarongwood Distribution and .Net Framework
For the last month i had been working on a sudoku game. Was using VB 2005 express edition. After all was done, tried to pass it on to others. Then only got to know that .NET framework should be loaded on the other PCs also. Then I read somewhere on net that if you use Visual C#, ou dont face this problem. I tried converting my project, but even in Visual C# its giving the same "Initialisation error 0xc0000315". So wat is the solu ...Show All
whaveman Slide Menu
Hi All, I am looking for source code to create a slide menu just like shown in the example http://www.obout.com/sm3/pro_5.aspx . I need the source code, Please help me out guys if you have anythign similar. Thanks Sathish Treeview easy Thanks Walker, but do you have any sample code ...Show All
Gumbatman .Net and Crystal Question
Hi Everyone This is my first time I'm using .Net to display Crystal Reports during runtime. My app works like this : When it starts, the user is prompted for the server, and then selects the database he wants to work with, so I can't hardcode some Crystal report, because the server and DB may differ each time the app is run. My manager drew up a "hardcoded" Crystal report of what he wants. The sql for the report is SELECT GL ...Show All
robbieh101 typedef in C#: Visible in separate projects
I saw that you could get around the absens of the C++ typedef feature by using: namespace NameSpaceCS { using Handle = System. Int64 ; or using Handle = System. Int64 ; namespace NameSpace CS { But this is only visible in one file. How do you make it visible in other projects. I have added the reference and the using NameSpace CS ; in my other project but it still seems to ...Show All
Mookey Deleting IE Cache
Well, i'm trying to delete the IE Cache with this: #region IECache private void IECache() { ClearFolder(new DirectoryInfo(Environment.GetFolderPath(Environment.SpecialFolder.InternetCache))); } void ClearFolder(DirectoryInfo folder) { foreach (FileInfo file in folder.GetFiles()) file.Delete(); foreach (DirectoryInfo subfolder in folder.GetDirectories()) ClearFolder(subfolder); } #endregion IECach ...Show All
Stephane Hamel how do i prevent "show desktop" or "windows key+m" from minimizing my program?
hi, i don't want my program to be on "TopMost" but i also don't want it to minimize. Never. even if i disable the minimize feature, the program can still be minimized by clicking on the "show desktop" icon or pressing Windows Key+M. I'd like to prevent that. Can someone tell me a possible way to do it btw, the "show desktop" button doesn't trigger the 'resize' or 'changesize' event in the form. Thanks, This ...Show All
ccarpediem How to retrieve email attachments programmatically?
Dear Experts, I am trying to develop a Windows Service that continues to listen to a particular email address (POP3 client, e.g. MS Outlook Express). When an email message is received, I need to check if there is any attachment, if yes, then I have to retrieve that attachment for processing. I don't have any idea on which APIs that I could use. Could you please advise Many thanks for your help. Tigger PO ...Show All
shaufe How do I add two (or more) icons together prior to displaying
I need to be able to merge multiple icons together on a treeview node. I have an imagelist containing all of the icons available. Anything that I have seen in trying to find a solution shows layering graphic objects that are positioned somewhere in space. My application requires me to add multiple images to a single node on the tree. Any help/guidance is appreciated. Not having done much in the realm of ...Show All
