Ray,
In order to do this, you will have to pass the reference for the form
that contains the listbox to the GenClass (through a property, method,
field, etc, etc). Once you do that, an instance of GenClass can then access
the listbox (assuming you made it public), and add items to it.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"raykos" <an*******@discussions.microsoft.com> wrote in message
news:D8**********************************@microsof t.com...
Hello all,
If I have an app that is a 'WinFormsApp', and on the form I put a
ListBox called 'ListBx'; then I add a generic class called 'GenClss', how do I add strings to the 'ListBx' from the 'GenClss'?
TIA,
Ray K.