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
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