Clear all textboxes on a form at run-time
handy code for clearing all text box controls at run-time
so you don't have to bother doing it at design time.
https://137.56.41.168:2080/VisualBasicSource/vbworkingwithtextbox.txt
Rate Clear all textboxes on a form at run-time
(5(5 Vote))
'make a new form; put some textboxen on it with some text in it
'make a commandbutton
'put the next code under the Command_Click event
Dim Control
For Each Control In Form1.Controls
If TypeOf Control Is TextBox Then Control.Text = ""
Next Control
Clear all textboxes on a form at run-time Comments
No comments yet — be the first to post one!
Post a Comment