I have the following code using wizard, and my hand codings, assume we have detailview, and they are working...
And when the update link is clicked, it always said that "Procedure or function...
Hello,
I am trying to figure out how to access a class instance created on one form from another form.
Say I have 3 Forms. (Form1, Form2 and Form3)
1. I am creating an Instance of Form...
I have some code that I would like to execute for each row in a dataGridView that I am populating from a database. Does anyone know how I can get the value of the ID Column for each row for t...
i got a textbox and list box if i type some text in text box and click insert button it should add to list box but it should avoid ading duplicate items and it should also avoid adding blan...
Thanks in advance for any assistance. Basically, I am trying to create a simple little application that will allow me to pick several Excel files (with the same schema) and then concatenate al...
I populate a combo box on my form using a dataset. I one to add one extra item to the combo box after its populated but every time I try to do that I get an error saying "Items collection cann...
Hi,
I am currently learning c#.net from Vb.net. In vb.net I would use the following command to retrieve data from another component on another form: -
lblUser.Text = frmMain.cmbUsers.tex...
how to add items to drop down list at runtime
I am writing a C# application in which I need to load an assembly from a file and then create an instance of a specific type from that assembly. I'm using the following code to do this:
Sys...
This is the first installation of a new project onto the live Exchange Server.
The project was developed on a stand alone exchange system and runs successfully. When it is installed on the ...
Hello Experts!
I have a DataGridView grd
when add one column :
DataGridViewComboBoxColumn cl=new DataGridViewComboBoxColumn();
cl.DisplayMember="szString";//property of my object
cl.De...
Hi Experts,
I don't understand why i get this error. Checking the MSDN documentation, it is supposed to work in .NET 3.5:
http://msdn2.microsoft.com/en-us/library/system.configuration.connec...
Hello experts.
How can I set a DataGridView so that its columns width will autofill the client area,
after filling the datagrid with data from a datasource ?
I am using VS2005 c#.
Hi all i am developing a WCF service and my requirement is to create a service with support for named pipes. I created a empty asp.net site and selected the WCFService option from the project ...
I have an UpdatePanel on my page. In that update panel I have:
1: button to "next step" of site
2: DropDownList - when an item is selected, this list does a postback (hidden by the update ...
I need to convert my ASP code for querying an Active Directory to Visual C#. I tried to use the DirectoryEntry and DirectorySearcher classes but the problem is I need to use an account with qu...
Hello experts,
Built windows program that takes input from textbox and clicking the Parse button, the program outputs the number of times each letter in the alphabet occurs in the textbox. Ca...
Hi,
I have the following info:
SqlCommand cmd = new SqlCommand("StoredProcedureName", cn);
cmd.Parameters.AddWithValue("@typ", dt);
What is the difference between "Add" and "AddWithV...
I need to get all the printers from AD, I have enclosed a code snippet that will kind of show my thought process. I have cut it down to the barebones to focus in to the area that I beleive wh...
I want to disable the minimize button in the window.open()...I have done it for maximize button but noway i can get it for minimize button using javascript.
I get the following exception, even though I close the reader. I have attached the source below. Can anyone find the problem?? Do I need to call some of the code in the finally statement bef...
Hello,
I am filling a DataGridView control with database from a SL Server table via a datset with the following code:
Conn = new OleDbConnection(ConStr))
cmd = new OleDbCommand(SQL, Conn)...
Hi,
I am creating a web server capable of processing Multi-Part posts from incoming clients.
With multi-part (file posts) most of the stream is text, but the portion between the boundries ...
Hi Experts,
I require C# windows application to send email with attachment. I got the error like
ex.Message "Could not access 'CDO.Message' object."
ex.InnerException.Message "Exceptio...
I have a scenario. There is a laptop. Many USB drives like about fourty (40) will be connected at a time. I have to write a code which can copy files efficiently to all the USB drives at the ...