Using C#, is it possible to send a list box or combo box to a method in a class?
I am trying to write a class with methods to populate any object i send it from dataset.
Thanks for any advice.
:eek:
Printable View
Using C#, is it possible to send a list box or combo box to a method in a class?
I am trying to write a class with methods to populate any object i send it from dataset.
Thanks for any advice.
:eek:
yes you can. My suggestion is to make the method take an object as a parameter. In the method body, use the is keyword to test if its a listbox or a combo box or whatever you want to populate, then cast to the whichever object you want to populate.
worked like butter on bread thanks.