My issue is basically the opposite of Hiding unwanted properties in custom controls.
I have created my own ProgressBar with text support based on the description I found here at SO: 3529928/how-do-i-put-text-on-progressbar. It works really great. I have slightly modified it for my use: I don't use the new property CustomText
of that example, I use the built-in Text
of the Controls
base class.
ProgressBar by default has no use for Text
, thus it's hidden in the designer. How can I unhide it?
I tried to overload it in order to apply the [Browsable(true)]
attribute, but it doesn't work yet:
[Browsable (true)]
virtual property String^ Text { String^ get() override;
void set(String^ text) override; };
What else do I have to do?