Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
User Controls
Message
From
05/10/2004 13:01:46
 
General information
Forum:
ASP.NET
Category:
Other
Title:
Miscellaneous
Thread ID:
00948805
Message ID:
00948846
Views:
14
Shawn,

You need to have properties on your UserControl that, when set in the property sheet, change the .Text of your label. Something like this:
public string MyLabelText
{
  get {return this.MyLabel.Text;}
  set {this.MyLabel.Text = value;
}
I guess I should have been more explicit in my original reply. ;)

~~Bonnie


>Bonnie,
>I checked and they are declared as public.
>
>What I am doing is building a basic user control that contains several small user controls.
>
>i.e.
>
>I have a created the following user controls :
>a year user control that has a label for the user to enter the year and I have a textbox for the input
>I have the same for month and day.
>I also created a user control with two radio buttons on it.
>
>
>I created another user new user control and dropped the four previous controls on it.
>I want to edit the radio buttons control and change the labels to Click 1 or Click 2 as an example.
>
>When I drop those controls on the user control form I can not edit them.
>I tried just dropping the individual controls on a form and I can not edit the labels on them.
>
>Any ideas???
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Reply
Map
View

Click here to load this message in the networking platform