Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing a Combo box as a parameter to a method

Status
Not open for further replies.

kamm

Programmer
Dec 4, 2000
17
GB
Does anyone know how you can call a method in a .bas module, from a UserControl, passing a combo box (on the UserControl) as one of the parameters?

Code so far:

.bas module
Public Sub LoadProjects(cmbProjectName As VB.ComboBox)

End Sub

UserControl
Public Sub Display

Call LoadProjects(cmbProjects)

End Sub
 
child controls are private by default I thought....so you would have to make a property of the usercontrol that passes back a reference to the combo box.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top