Advertisement

Experts have come up with some helpful tips for getting a solution to your problem fast.

 

Welcome! If you have any general questions about Experts Exchange, feel free to ask me.

 
Time Tested MS Visual C# Solutions: 376 - 400 of 2225
 
Is there any way I can loop inside a streamreader using foreach a get a String?
I want code for printing (DOS and Windows printing) datagridview content (which contains images in one of the columns) in c#.net 2005. Please explain how to set (through code) formatting optio...
Hello,    I need to get the Eventlog EventID out of the InstanceID. Below is some code I found that does it perfectly, but sometimes it does not return the correct value. Does this code loo...
How to get mac address of local computer using C# 2.0 in windows form?
I have a form that requires a user be logged in. Should the session timeout, I need to save whatever data is currently on that form. How do I detect a session timeout so I can save the data? I...
I have a page that includes a gridview control showing a list of contacts associated with a selected record.  I have used the footer of the gridview to allow users to add new contacts if they ...
Hello, I am using C# with ASP.NET 2.0 and the jquery library.  I am having a problem with setting the dispaly property of an element inside of the page, and then, when i call a server side met...
I cannot get FindControl() to work in a page which uses a master page.  Can anybody point me in the right direction ? The following code works as expected if I do NOT use a master page: ...
the attached scripting relates to the autogenerated gridview code -- which is working fine as is. there is a "navigating" trap within the WinForm (which is hosting the browser session) -- w...
How can I clone a dictionary<string,string> object? Is there a built-in method? I cannot find one. Do I have to do a memberwise copy to the new Dictionary<string,string> object with my own cus...
In VB I would use the event of form.close or something similar then I would simply add code to it so that when it closes another form would open. I am learning C# and not sure how to do this. ...
I am attempting to create an Excel spreadsheet through C# and I need to include a few columns that can be populated by the user from a drop down list.  After some digging around, I discovered ...
Hi all! Whatever I do, I cannot get hold of the ReportExecutionService class from the ReportExecution2005.asmx. I connect to it with a "Service referance" and I can see alot of elements ...
I am porting over an Outlook add-in from Visual Basic 6 to C# 2.0 (Visual Studio 2008).  I have two forms a "main" and  "progress" in which the main has all the logic and controls while progre...
I am having a few problems with permissions in windows Vista using C# code from an MCTS book.  It is a simple calculator program with some of the buttons restricted depending on the Role of th...
I need to remove several rows from an ASP.NET Datatable based on a condition and then rebind it to a Repeater. I am find that I get the error 'Datatable has changed" when I try to iterate thro...
Hi experts, I was asked to create a report in Excel. I should take data from a table and populate it on Excel. I used the below query select * from database_table;   Now in database...
I can retrieve an OLE Object from Northwind database and change it to a c# Bitmap object. I used an offset of 78 when reading the byte array. (see code snippet) But I can't convert the OLE...
Im creating my first Windows Service via C# .NET v1.1.  The service was created and installed correctly, and started ok.  I then went back and added a FileSystemWatcher to watch a particular f...
I am trying to start Wordpad with a filename.  My path consists of LocalPath + item.Text which...in the test case...works out as "C:\\TestFile.txt".  Of course the double slashes are in there ...
I'm having trouble downloading a file from a web server using HttpWebRequest. The FIRST file I download works fine, but the SECOND always times out on the GetResponse() call for the "GET" meth...
Hi, I have one default page (default.aspx) inside that i have one user control containing rad grid. On click of the link button (which is one column in grid) i am opening the rad window. ...
I want to execute some code after form loads   It's mean : Action 1  private void myForm_Load(object sender, EventArgs e) Action 2  myCode() How can I do it in C# ? Thanks
protected System.Web.UI.WebControls.TextBox year; protected System.Web.UI.WebControls.DropDownList month; protected System.Web.UI.WebControls.DropDownList day; protected System.Web.UI.WebCo...
I've got an application that pulls down a zipped file via ftp and now needs to decrompress that file so that it can read the contents.  I've been looking around online, but all of the answeres...