VB6 - Clearing all textboxes on the form with one command
9,048
Publicado 2009-07-06
Dim ctl As Control
For Each ctl In Me.Controls
If TypeOf ctl Is TextBox Then
ctl.Text = ""
End If
Next
Todos los comentarios (14)
-
Thanx Alot Buknolan Its already 2014 but still your solutions makes my day :D
-
AWSOMEEEEEEEEEEEEEEEEEEEEEEEEEE
-
glad to help.
-
np :)
-
thanks man!! u saved me :D
-
@underdilusional Yes, but that only clears it for Text1. This code clears ALL textboxes on the form without the need of specifying a name.
-
thanks^^..
-
@joevalle90 Np, wow. Old video :P
-
Still active
-
in visual basic 2008 exp.edit. TextBox1.Text = ""
-
Still here.
-
how would you do this in Visual Studio 2010 ?
-
@Rebel4mCork Not sure, sorry I can't help... :/