Differences in clearing TextBox text

DiverDan

Contributor
Joined
Jan 16, 2003
Messages
645
Location
Sacramento, CA
What are the differences of clearing textboxes' text between:

TextBox.Text = ""
TextBox.Text = Nothing
TextBox.ResetText()

Eventhough there are probably a handful I left out, they all appear to accomplish the same thing.

Thanks
 
Those two clear the TextBox:

TextBox.Text = ""
TextBox.Text = Nothing

This returns the TextBox to its default value, so if you create your own control that uses this textbox you can put some default text in it, and it will return to it.

TextBox.ResetText()
 
Heh, me neither, Robby. :) The method I use to clear a textbox
is TextBox.Clear(), which is essentially the same as TextBox.Text = ""
 
Back
Top