hello,
how can I access the parent form controls in a UserControl code..
i created a new usercontrol called UC1 .. i tried
uc1.
me.
not working..
thx in advance..
Printable View
hello,
how can I access the parent form controls in a UserControl code..
i created a new usercontrol called UC1 .. i tried
uc1.
me.
not working..
thx in advance..
Use Me.Parent.(ControlName)
It will work. But not in UserControl_initialize. Use some where else after initialize.
its not working.. i have a button in my UserControl..
so in its click event i tried "me" and i tried "uc1"
not working..
thx anyway..
Instead of Me use UserControl :VB Code:
UserControl.Parent.[i]whatever[/i]
thank you much..