const Image to set DefaultValue on Image property

C

CBanu [IXIA]

Hi all,

I'm having some problems with one of my controls. I derived a control
(MyImageButton) only to set a specific Image on it
(MyToolTipInfoButton) when calling the constructor. However, the
designer doesn't know about this change, because on the Image property
the DefaultValueAttribute is still null. When trying to override it, I
see that I can only use const values when creating the attribute.

The question is: how do I create a const Image? I know how to do
static, but const is a mistery.

I hope someone has a solution for this.

Thanks in advance,
Cosmin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top