Hi all,
I have a quick question, that is pretty simple, and I'm hopeing that someone else knows how to go about doing this.
First off I am using Visual Basic in Visual Studio 2005.
Now I have a function which I pass a combobox to, and it then fills the combobox with the correct values. This all works correctly. NOW I have a toolstripcombo box also, that I would like to do the exact same thing for, except the function will not accept a toolstripcombobox instead of a normal combobox being passed to it. Does anyone know how I can get that to work? Ideally, something similar in function to:
Private Function Fillfield(ByVal B As ComboBox or ToolStripComboBox)
(I know the above does not work, I'm just attempting to show HOW I would like it to work..)
Any help would be greatly appreciated!
I have a quick question, that is pretty simple, and I'm hopeing that someone else knows how to go about doing this.
First off I am using Visual Basic in Visual Studio 2005.
Now I have a function which I pass a combobox to, and it then fills the combobox with the correct values. This all works correctly. NOW I have a toolstripcombo box also, that I would like to do the exact same thing for, except the function will not accept a toolstripcombobox instead of a normal combobox being passed to it. Does anyone know how I can get that to work? Ideally, something similar in function to:
Private Function Fillfield(ByVal B As ComboBox or ToolStripComboBox)
(I know the above does not work, I'm just attempting to show HOW I would like it to work..)
Any help would be greatly appreciated!