Hi,

I created base UserControl for visual inheritance. The base control includes
the following property:

[Category("Appearance")]
[Description("The button text")]
[DefaultValue("Hi")]
public string ButtonText {
get {return this.button1.Text;}
set { this.button1.Text = value; }
}

But the property "ButtonText" does not appears in property window.

How can I add property window support to my Visual Inheritance procatice?

Thank you,
Max

Re: Visual Inheritance: Can I add custom properties to properties window? by Alex

Alex
Wed Oct 18 10:45:36 CDT 2006

I think you have to add [Browse(true)] before property

"Maxwell2006" <alanalan@newsgroup.nospam> escribió en el mensaje
news:u4eeoEs8GHA.2092@TK2MSFTNGP03.phx.gbl...
> Hi,
>
> I created base UserControl for visual inheritance. The base control
> includes the following property:
>
> [Category("Appearance")]
> [Description("The button text")]
> [DefaultValue("Hi")]
> public string ButtonText {
> get {return this.button1.Text;}
> set { this.button1.Text = value; }
> }
>
> But the property "ButtonText" does not appears in property window.
>
> How can I add property window support to my Visual Inheritance procatice?
>
> Thank you,
> Max
>



Re: Visual Inheritance: Can I add custom properties to properties window? by Maxwell2006

Maxwell2006
Wed Oct 18 14:38:59 CDT 2006

Yep, Thank you!
"Alex Bibiano González" <abibiano@nikel.es> wrote in message
news:Oh4Nzxs8GHA.3820@TK2MSFTNGP02.phx.gbl...
>I think you have to add [Browse(true)] before property
>
> "Maxwell2006" <alanalan@newsgroup.nospam> escribió en el mensaje
> news:u4eeoEs8GHA.2092@TK2MSFTNGP03.phx.gbl...
>> Hi,
>>
>> I created base UserControl for visual inheritance. The base control
>> includes the following property:
>>
>> [Category("Appearance")]
>> [Description("The button text")]
>> [DefaultValue("Hi")]
>> public string ButtonText {
>> get {return this.button1.Text;}
>> set { this.button1.Text = value; }
>> }
>>
>> But the property "ButtonText" does not appears in property window.
>>
>> How can I add property window support to my Visual Inheritance procatice?
>>
>> Thank you,
>> Max
>>
>
>