Advertisement

635 organizations, including eBay, Ericsson and Lockheed Martin, now work smarter with Corporate Accounts. Save up to 42%

 

Welcome! Let me know if you need help using the site or assistance with non-technical questions.

 
Time Tested C# Solutions: 1 - 25 of 9492
 
Hi,  How do I Check in C# if the file "a.doc" Exist in the folder "c:\xxx\qqq" thnx
is there anyway to send mail using yahoo or hotmail or others mail server? here my code, System.Web.Mail.MailMessage message=new System.Web.Mail.MailMessage();                message.From="xxx@yahoo....
I've been using the following C# code. Now I need to have a seperate date and time instead of both in the same string: DateTime dateTime = DateTime.Now; dateTime.ToString();                    
i need to click on a button in another application from my C# application, i have API calls working to activate or close the window etc and they work fine so i know i am sending messages, and ...
Exception Details: System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x800A03EC. Source Error: Line 32:                xlApp.Visible = true; Line 33:                string strFileName = s...
Hello experts: I'm trying to load the load test.xls contents thru c# code so that I can update some data base fields: My code is below: public class BankParserClass Excel.Application e...
I used to use the mod function in asp to figure out the following while looping through rows in a dataset to display a matrix style grid of products: if n mod 3 = 0 then    //start a new...
Hi all,      I am trying to run a .bat file which in turn contains a command for an application. here is my code. --------------------            string filepath2 = strArray[2] + "\\myCmd...
C# VS 2008/2005 - Dianlogue box button selection. Simple. I have a YES or NO Dialogue box and when the users selects YES or NO they get another dialogue box informing them of their selectio...
This is my lame excuse for a routine to remove special characters from a string (I just want the spaces preserved so I can then turn it into a CamelCase variable name... is there a better way?...
Is there property I can set so that I can use the open file dialog to select only a directory?  Or is there a similar control I can use?  ( I seem to remember doing in VB, is there an a simila...
Hi, Lets say I have a text file. Always when I try to write to it with the following code, It erases what was already in it:                 // create a writer and open the file     ...
I am trying to learn how to work with XML better... please help me figure out how to do this example.  There are certain elements that have child elements - I don't want to display them or the...
Hi I am pretty proficiant at crawling web pages using an axWebBrowser in a c# application but am getting hung up when I hit a save file dialog.  I need to save the file (an xml report) for ...
I have a tag value as string in my program....I want to search that Tag value in Tree control and want to select/expand the node with that Tag value. C# please!!!
I have a double, db1, that needs to be rounded like so: 123.12 - > fine 123.123 - >123.13 Anything passed the second digit after the decimal gets rounded up 1 digit and parsed to only s...
My application opens to Form1 when loading.  Form1 has two tabs and many controls, one of them is a text box - txtPolNumber. I am trying to set the cursor focus inside the text box when the...
How can I make my application(WinForm, C#) go to system tray when I click on the Minimize button! Thank!
Hi, I want to find the ratio of 2 numbers. For example, the ratio of 150 and 200 is 3:4 (I dont want a single fractional value like 0.75. I want a ratio). Similarly the ratio of 550 and...
hi i have a list in c#.  i have sorted it by effective date using the following code. MyList.Sort(delegate(ListItem li1, ListItem li2) { return li1.EffectiveDate.CompareTo(li2.EffectiveDate...
Hello, How to call a C# function (eg., main()) from a Javascript funtion (eg.,ref()).? On Button click I can use this statement : document.getElementById("InBut").click(); But how can I c...
Hi All, Can anybody tell me how to add, delete and most importantly edit a cell of a particular row in c# 2005? David
I need to control the keypress event.  I want to prohibit the user from entering letters in text boxes designed for numbers.  What is my best option?
i am using SendKeys.Send("{tab}"); in the key press event of a text box to move to the next textbox by pressing ENTER key This is working fine, but i am getting an error beep. can anybody p...
Hi Experts, I have an IIS 6.0 box with a C# web application running on it.  There is a requirement that the C# application be locked down from unauthorised users via Sun LDAP server running o...