Greetings!
I just developed a little control I've wanted for ages. It links a textbox
and a label into a single control. At first, I gave it a property named
LabelText and another named BoxText. Both of them happily appeared in the
Properties window when I dropped my control onto another control. But then
I remembered that Microsoft wants to standardize on using the property name
"Text" for things that look like text. I decided that the text box's text
was the important thing in the control, so I changed the name of BoxText to
Text. But now the Text property does not appear in the Properties window!
What do I have to do to get it to show up? I think it's related to the fact
that the UserControl class has a Text property already.
Here's the definition of the Text property:
public new string Text
{
get
{
return theTextBox.Text ;
}
set
{
theTextBox.Text = value;
}
}
I tried using "override" instead of "new", but that didn't work either.
Thanks very much!
RobR