[C#] Use a listBox from a Class.
#2

set the listbox as public , protected Internal or Internal

 

then u can call the listbox from a other class like this:

 

for example

 

public static void test()
{
string myitem = "this is a test";
Form1 a = new Form1();
a.listBox_online_list.Items.Add(myitem);
}



Messages In This Thread
[No subject] - by Nikolee - 08-20-2012, 12:07 PM
[No subject] - by HateMe - 08-20-2012, 01:10 PM
[No subject] - by Nikolee - 08-20-2012, 01:45 PM
[No subject] - by Wizatek - 08-20-2012, 01:51 PM
[No subject] - by Nikolee - 08-20-2012, 02:19 PM
[No subject] - by HateMe - 08-20-2012, 03:07 PM
[No subject] - by Nikolee - 08-20-2012, 03:15 PM
[No subject] - by Wizatek - 08-20-2012, 04:02 PM
[No subject] - by someone - 08-20-2012, 04:34 PM
[No subject] - by Nikolee - 08-20-2012, 04:52 PM
[No subject] - by someone - 08-20-2012, 05:05 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)