What is UserControl.Text??

  • Thread starter Thread starter SamSpade
  • Start date Start date
S

SamSpade

This more out of curiosity than need.

The Object Browser shows a property Text for UserControl.

But if I look in the property window for a UserControl Text is not there
(How come??).

I understand that if a class inherits from Usercontrol and overrides Text,
Text will have the new meaning.

But I inadvertently used the text property of a usercontrol and am now
wondering what that is.

If I set it, is it just a string that gets saved and never used.

Thanks
 
* " SamSpade said:
The Object Browser shows a property Text for UserControl.

But if I look in the property window for a UserControl Text is not there
(How come??).

I understand that if a class inherits from Usercontrol and overrides Text,
Text will have the new meaning.

But I inadvertently used the text property of a usercontrol and am now
wondering what that is.

If I set it, is it just a string that gets saved and never used.

You will have to use/display the string yourself if you want to display
it.
 
I want my usercontrol to have a Text property which has nothing to do with
the Usercontrol.Text. I assume that will not cause any problems.

I have no idea what the UserControl does with the string if I set
Usercontrol.Text to something.

Thanks a lot
 
Back
Top