Showing the Enable property on the PropertyBox of an ImageButton type class

  • Thread starter Thread starter Andrés Giraldo
  • Start date Start date
A

Andrés Giraldo

Hi!

I created a webcontrol that inherits from an ImageButton, I need to show
the Enable property on the PropertyBox, how can I do that?

Note: The ImageButton doesn't shows the Enable property on the
PropertyBox

Thanks!
 
That's a job for custom attributes. If you want to display something in the
properties box, you can include (for that method):

[Bindable(true), Category("Appearance"), DefaultValue(""), Description("Show
this puppy?"]
public override bool Enabled {
get {
return base.Enabled;
} set {
base.Enabled = value;
}
}
 
Hi!

Thanks for answer me, but it doesn't work either, I just put this
code...

<System.ComponentModel.Bindable(True),
System.ComponentModel.Category("Appearance"),
System.ComponentModel.DefaultValue(True),
System.ComponentModel.Description("Enabled")> _
Public Overrides Property Enabled() As Boolean
What's missing?
 
Back
Top