473,408 Members | 2,477 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

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

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!

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #1
2 1279
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;
}
}
--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"Andrés Giraldo" <an************@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
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!

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #2
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?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Andrés Giraldo | last post by:
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...
1
by: Henke | last post by:
Hello, I have one ImageButton controls which I initialize in Page_Load and declare on class level. ImageButton save = new ImageButton(); save.ImageUrl = "save.gif" save.Click += new...
4
by: Rod | last post by:
Hi! I have 2 frames called "Left" and "Main". In the "main" I have this imagebutton (the enabled property is set to "False"): <form id="Form1" method="post" runat="server"> <asp:imagebutton...
0
by: Andrés Giraldo | last post by:
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.