Groups | Blog | Home
all groups > vb.net controls > june 2005 >

vb.net controls : About ResetText Method


Ellis Yu
6/17/2005 12:00:00 AM
Dear All,

In design time, I set a default in text value of textbox. When I try
to use the method ResetText to set its text value back to default. I found
it just clear the text value to blank. Did I misunderstand the use of method
ResetText ? Does anyone know? Thanks

Best Rdgs
Ellis

Ken Tucker [MVP]
6/18/2005 6:01:25 AM
Hi,

Resettext sets the text back to its default value. The textbox
does not have a defaulttext property. The notes on this method say that you
typically use this method if you are creating a designer for the control or
creating your own control.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformscontrolclassresettexttopic.asp

Ken
----------------------
[quoted text, click to view]
Dear All,

In design time, I set a default in text value of textbox. When I try
to use the method ResetText to set its text value back to default. I found
it just clear the text value to blank. Did I misunderstand the use of method
ResetText ? Does anyone know? Thanks

Best Rdgs
Ellis


AddThis Social Bookmark Button