
Getting the text property to appear in a custom button
Hello,
I'm trying to create a custom flat button control, kind of like what
is used on the VS.NET toolbar. Everything is working well so far,
except that I can't get the stupid thing to expose the Text property
for the control. I declared the property as an override of the
UserControl's text property, so it should work, shouldn't it? Is there
something I'm missing here? I did declare the property to be public
and it isn't any different than any other property declaration in the
class, except that it is an override. I also tried shadowing the base
class method. What was interesting was that I could get the property
to appear if I changed its name to "Caption". Any ideas?
Thanks,
Will Gant