Convert String DataType To Form Object
-
I have a combobox that all my formname such as form1,form2,... listed that. i want when i select a formname from combobox the component of selected form list in listbox such as button1,textbox1,.... but when i choose a formname from combobox because it is a string havenot form property such as control,enabled,... how can convert selectitem in combobox from string to form??
-
I have a combobox that all my formname such as form1,form2,... listed that. i want when i select a formname from combobox the component of selected form list in listbox such as button1,textbox1,.... but when i choose a formname from combobox because it is a string havenot form property such as control,enabled,... how can convert selectitem in combobox from string to form??
you cannot convert a string to a form, I would hope that is obvious. You could make the tag of the item the form that your string refers to, and then grab it from there, or build a map of strings to forms.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
I have a combobox that all my formname such as form1,form2,... listed that. i want when i select a formname from combobox the component of selected form list in listbox such as button1,textbox1,.... but when i choose a formname from combobox because it is a string havenot form property such as control,enabled,... how can convert selectitem in combobox from string to form??
Hi, You Can try This.... http://www.vbforums.com/showthread.php?t=538427[^] http://www.programmersheaven.com/mb/VBNET/217962/217962/how-to-convert-string-type-to-control-type--/[^] hope this helps Anoop Brijmohun