Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting Properties on Controls in Inherited Forms
Message
From
27/10/2003 12:27:35
 
 
To
27/10/2003 12:13:23
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
00842236
Message ID:
00843062
Views:
19
Terry,

In order to make a private variable (or fields as they are also called) into a public property, do the following:
public Button MyButton
{
    get {return this.mybutton;}
    set {this.mybutton = value;}
{
~~Bonnie



>Morgan,
>
>Sorry maybe I did not make myself clear. The steps to recreate what I’m talking about are:
>
>1. Add a windows form to a project.
>2. Add one or more command buttons, or any other controls, to the form.
>3. Save the form and rebuild the project.
>4. Now add a form inheriting from the first form.
>5. In the inherited form the command button(s) properties cannot be changed in the properties page.
>
>If the controls are private when added to form one, how can they be set to public in the first form so their properties can be changed in the properties page?
>
>
>Regards
>
>
>Terry Carroll
Bonnie Berent DeWitt
NET/C# MVP since 2003

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

Click here to load this message in the networking platform