|
-
Feb 16th, 2009, 05:20 PM
#1
Thread Starter
Fanatic Member
Inhereted usercontrol.
Hey,
I started playing around with the inherited user controls and i was wondering if there was a way that I could move some of the text boxes and labels from the original user control. basically to give it a more appealing look with the extra controls of the
-
Feb 16th, 2009, 05:44 PM
#2
Re: Inhereted usercontrol.
User controls obey exactly the same rules as any other classes and objects. If a member of the base class is private then it can't be accessed, otherwise it can. Of course, the Controls property of every control is public.
-
Feb 18th, 2009, 12:43 PM
#3
Thread Starter
Fanatic Member
Re: Inhereted usercontrol.
-
Feb 19th, 2009, 12:43 AM
#4
Re: Inhereted usercontrol.
Soooo... what non-private members are there in the base class that expose those TextBoxes and Labels?
-
Feb 19th, 2009, 09:03 PM
#5
Thread Starter
Fanatic Member
Re: Inhereted usercontrol.
I guess im not following this... and ill chalk that up to my very shakey understanding of oop in general.
this is what im seeing

i understand that the underlying user control has exposed public properties but im not sure how to make it look like this.

I understand the adding textboxes but how do i access the properties of the inherited usercontrol from the enveloping control?
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
|