Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting the default text for a TextBox

Status
Not open for further replies.

jlips

Programmer
Apr 5, 2004
5
US
Dear Experts,
How do I set the default text of a textbox? Sure, I can have text display when I start a program using TextBox.Text, but I wish to invoke Control.ResetText() such that the TextBox resets to the original text, instead of a blank string.

Thanks!
 
The following comes from MSDN:

Remarks
You typically use this method if you are either creating a designer for the Control or creating your own control incorporating the Control.

This is a virtual method to be implemented by the programmer (that's us) or the next version of Windows Forms.

Bryan Wilhite
Songhay System
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top