When your event gets called, the "sender" parameter will be the combobox
that the event is for, so you should be able to cast that to ComboBox in
your routine, and then fill it.
You'll also need to hook up the event on each combo box to point to this
routine
Hope that helps.
--
Eric Gunnerson
Visit the C# product team at
http://www.csharp.net
Eric's blog is at
http://blogs.gotdotnet.com/ericgu/
This posting is provided "AS IS" with no warranties, and confers no rights.
"John" <no****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I have a form with a bunch of combo boxes that will be populated at
runtime based on user input. I have created a class for the form with will handle
all of the UI processes. I am trying to create a generic delegate that
will handle all of the combo box loads. So, when the form invokes the UI
process class to load the combo box it will call the write method to load the
combo box on the form. How do I do this? Do I need to create an event for each
combo box? Any ideas?
Thanks