
06-22-2004, 05:29 AM
|
|
Freshman
|
|
Join Date: Jan 2004
Location: İstanbul
Posts: 26
|
|
Referring a VB control via its name in string format
|
Hi,
I have menu items of which names are as subMenu(0), subMenu(1), etc. on the main form. I can use the properties of these items such that subMenu(0).visible = true.
What I would like to do is, I have a string which is "subMenu(0)" and I want to use this string in order to refer my actual control subMenu(0), so that after getting the value of the string, I can perform the "subMenu(0).visible = true" operation.
Is there a way in VB?
|
__________________
Funny but not easy...
|