Is there a method that replicates the findcontrol action within the pocket framework?
i want to pass a control to a public function but using a string value.
any ideas??
cheers
Pete
Printable View
Is there a method that replicates the findcontrol action within the pocket framework?
i want to pass a control to a public function but using a string value.
any ideas??
cheers
Pete
I guess I don't understand the problem. What is in the string?
the string is just the name of the control that i want to pass through to another class eg:
so somthing like
VB Code:
Private Sub Hello() dim strComboName as string = text1.text PopulateDropDowns(text1.text) End sub Private Sub PopulateDropDowns(byval objCombo as ComboBox) 'Do stuff End Sub
i would normall do something like
PopulateDropDowns(me.FindControl(text1.text)) which would find the combo and actually pass the control