|
Wow....
You best start here: C# for Dummies[^]
Come back when you're done.
He who makes a beast out of himself gets rid of the pain of being a man
|
|
|
|
|
Whats wrong with that question, i dont understand why did you ask him to read that book.
ASFAIK upto .net 2.0 version winforms doesnt have table control.
Have to manage with Panels or use GDI
Thanks
Srini
|
|
|
|
|
Thanx srini
you have understand my problem.
your
peter
|
|
|
|
|
Are you looking for something like this?
TableLayoutPanel[^]
If you are looking for something else please make it clear...
*jaans
|
|
|
|
|
Hi ,
Thanx for reply. But I am using VS2003.Is there any other way to do in 2003.
Thanx in advance...
your
peter
|
|
|
|
|
I would like to write an application (in C#) to read data from a textbox to a WORD doc (and vice versa), can anyone HELP me.
Mvelo Walaza
Junior Developer
Telkom SA
|
|
|
|
|
You can use Word Object Model to work with word files
|
|
|
|
|
|
Hi All,
I implemented a C# class library and registered it to be visible for COM objects, then i used it from VB6 application and it works fine. Now the problem is that i want to raise an event in the .NET COM and pass it as an event in VB6. i.e. when the .NET COM catched an exception i want it to raise event in the VB6 application to log the event (because the logger works there). Any ideas?
Thanks,
Mayy
|
|
|
|
|
Throw a COM exception?
Need a C# Consultant? I'm available.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
|
|
|
|
|
How can i implement AutoScroll in Scrollviewer?
i want when i expand something inside it , Scroll var will automaticaly comes down ....
Any idea !!!!
Thanks in Advance !!!
|
|
|
|
|
I was just having this problem with one of my programs. What I had to do was create a single scrollviewer and then I had to embed a wrappanel or stackpanel inside of it. Then make sure the scrollviewer CanContentScroll property is set to false.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios[ ^]
|
|
|
|
|
I build an application in C# with crystal reports. If I try to use application in user's machine, when I open some crystal rep. I get this messagebox:
Cannot find keycodeV2.dll or invalid keycode.
Can somebody tell me what's the problem
kpp
|
|
|
|
|
Search Google. Crystal is notorious for this. Also, you can only redistribute binaries and not source with Crystal unless everyone has a license.
Need a C# Consultant? I'm available.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
|
|
|
|
|
I have written a window service in C#. On windows XP it runs fine. I checked it on my computer and some other computers in office. I am able to install it on production system. But when i try to run this service i receive following error:
"ERROR 1053: The service did not respond to the start or control request in timely fashion"
I google on this error. Most of people are saying that Start method of service should return as soon as possible. In my start method, i am opening a file, making a socket and creating and starting a thread.
After this when i try to uninstall the service i got following error:
Exception occurred while initializing the installation:
System.BadImageFormatException: Could not load file or assembly 'file:///C:\game firewall\New Folder (4)\Firewall.exe' or one of its dependencies. The module was expected to contain an assembly manifest..
ANY BODY COULD TELL ME TO RESOLVE THAT PROBLEM?
|
|
|
|
|
Well, is that file there in the first place? Also, why on earth would you want to name an application folder New Folder (4) ?
If the file *is* there and you *want* that folder name, check the folder permissions. Then try opening it using ildasm.
Cheers,
Vikram.
"I will put my new found knolage to good use" - Captain See Sharp.
"Every time Lotus Notes starts up, somewhere a puppy, a kitten, a lamb, and a baby seal are killed." - Gary Wheeler.
|
|
|
|
|
I have to copy again to uninstall the windows service. That is why "New Folder (4)" i am copying fourth time to uninstall the application and then trying to reinstall.
I have given all permission to administrator as well as creator. By using ildasm i compare uploaded exe file and local exe file. Both have same manifest also same structure of classes.
ANY OTHER HELP?
|
|
|
|
|
I have a ComboBox that is populated with values from a MS Access table. Next I use the below code to delete the record that is selected in the comboBox.
private void button3_Click(object sender, EventArgs e)
{
OleDbConnection conn = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\Magazi.mdb");
conn.Open();
OleDbCommand cmd = new OleDbCommand("DELETE FROM Suppliers WHERE Name=@Name", conn);
OleDbParameter parDel = new OleDbParameter();
parDel.ParameterName = "@Name";
parDel.Value = comboBox1.SelectedItem;
cmd.Parameters.Add(parDel);
cmd.ExecuteNonQuery();
conn.Close();
}
For some reason I get an "OleDbException was unhandled" message...
|
|
|
|
|
Plz. use "comboBox1.SelectedValue" rather than comboBox1.SelectedItem;.
|
|
|
|
|
SelectedItem.ToString(); might solve your problem. If you're adding objects rather than strings so your comboBox make sure you've overridden the ToString method.
|
|
|
|
|
Ok. I have tried some things and this what I get...
Using the below code and I have also display member, value member and SelectedValue of the comBox set to Name.
private void button3_Click(object sender, EventArgs e)
{
OleDbConnection conn = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\Magazi.mdb");
conn.Open();
OleDbCommand cmd = new OleDbCommand("DELETE FROM Suppliers WHERE Name=@Name", conn);
OleDbParameter parDel = new OleDbParameter();
parDel.ParameterName = "@Name";
parDel.Value = comboBox1.SelectedValue.ToString();
cmd.Parameters.Add(parDel);
cmd.ExecuteNonQuery();
conn.Close();
}
When I try to select a value from comboBox I get this message:
Column 'Name' is constrained to be unique. Value 'Champion' is already present.
|
|
|
|
|
Use this
comboBox1.SelectedItem.ToString();
|
|
|
|
|
Hi Guy
I seen your code in above. i seen may be ur combobox haven't a selected value may be pass null value, so error will raise.
and second may be comboBox haven't records. so verify both condition after get comboBox1.SelectedItem.
when directly to use comboBox value we must do validations.that's give error free to us.
thanks
Cheers
RRave
MCTS,MCPD
|
|
|
|
|
Hi Guroos,
I want to send newsletter to all recipients. I do not want to write all email address in BCC. and Also do not want to write in TO box. What should I do?
Simply I want every member should get newsletter with his own email address in TO box.
|
|
|
|
|
AkmalSyed,
You could do it in a loop.
foreach (string email in emailCollection)
{
string header = "welcome to spammers are us!";
string body = "your message";
Email email = new Email();
email.Header = header;
email.Body = body;
email.EmailAddress = email;
email.Send();
}
|
|
|
|