|
-
May 12th, 2004, 01:36 PM
#1
Thread Starter
Addicted Member
Add data to ComboBox [Resolved]
This is the problem. I can add data to a combobox if it is in the same class.
For example:
String x = "Test";
combobox1.Item.Add(x);
But if I have the data in another class I cannot add it.
For example
String x = "Test";
Form1 myForm = new Form1();
myForm.combobox1.Item.Add(x);
But it does not work. Any ideas? I am new to C#, so sorry if this is simple.
Last edited by jordan23; May 17th, 2004 at 08:20 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|