LeeSalter
Freshman
All,
I have some code in a Class that I want to add items to a listbox that lives on a form.
The Form is in one .vb file, the class code is in a seperate .vb file under the same solution.
I cannot reference the listbox on the form form the code in the class! Ie :- frmName.Listbox does not work.
If I inherit the form in the Class code, I can reference the listbox by doing me.Listbox
However, when I code to add items to this listbox, the items do not appear!! Any idea what I'm doing wrong??
I have some code in a Class that I want to add items to a listbox that lives on a form.
The Form is in one .vb file, the class code is in a seperate .vb file under the same solution.
I cannot reference the listbox on the form form the code in the class! Ie :- frmName.Listbox does not work.
If I inherit the form in the Class code, I can reference the listbox by doing me.Listbox
However, when I code to add items to this listbox, the items do not appear!! Any idea what I'm doing wrong??