|
-
Nov 27th, 2006, 06:58 AM
#1
Thread Starter
Member
[RESOLVED] UserControl
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..
-
Nov 27th, 2006, 07:15 AM
#2
Lively Member
Re: UserControl
Use Me.Parent.(ControlName)
It will work. But not in UserControl_initialize. Use some where else after initialize.
-
Nov 27th, 2006, 07:17 AM
#3
Thread Starter
Member
Re: UserControl
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..
-
Nov 27th, 2006, 07:19 AM
#4
Re: UserControl
Instead of Me use UserControl :
VB Code:
UserControl.Parent.[i]whatever[/i]
-
Nov 27th, 2006, 07:44 AM
#5
Thread Starter
Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|