Hi all,
A newbie came here ask question again![]()
The previous thread has been solved. Now i would like to make my code more flexible. Thus, i need to pass value to another form method used by multiple form.
Example.
Form1
Form2Code:Public sub LoadCombo(Byval ComboBoxName as Combobox) 'Code load data from dataset is going here end sub
Question : how can i make the form flexible ? like the form object can refer to any instance?Code:Private Sub AddCombo(form as new form1) ' I would like make flexible here form.loadcombo(me.comboboxname)'Comboboxname is an property, value passed from form1. end sub
Thanks you :-)


Reply With Quote