Hi
I have added a panel to a form and in this panel have added some controls
e.g. Button1
The only way I can see to access this button is as follows:
Dim index As Integer = Me.Panel1.Controls.IndexOf(Button1)
CType(Me.Panel1.Controls.Item(index), System.Windows.Forms.Button).Enabled =
True
Is there an easier way to do this? It seems a lot of typing!
Also, the button seems to be disabled even if this code is used; although it
is visible. Can anybody help?
Thanks in advance
Geoff