Saturday, June 20, 2009

Clear all text on your form

Textbox to clean, we can do with the way Text1.Text = "". If there's only 1 or 2 control textbox, do not come into question, but if there is 10 or more how?

Text1.Text = ""
Text2.Text = ""
And so on...Really tire :).

Possible you do matter like above if we like to clean text at control textbox. If yes, really tiring. Following simple code which possible a little a few you to clean text at control of textbox:

Dim i As Control

For Each i In Form1
If TypeOf i Is TextBox Then i.Text = ""

Form1 is where situation of form which there are control of textbox which wish you clean.

No comments:

Post a Comment