Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hoe to Clear multiple text boxes?

Status
Not open for further replies.

saimagulse

Programmer
Aug 5, 2006
9
0
0
PK
In VB6 we can write code like this to clear all text boxes on form
For each ctl in me.controls
if typeof(ctl) is TEXtBox then
ctl.text=""
next

I want this type of code in VB.Net so that all text boxes on my form will be cleared.
How can i do that?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top