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 derfloh 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
Joined
Aug 5, 2006
Messages
9
Location
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?
 
thread796-1176988


________________________________________________________
Zameer Abdulla
Help to find Missing people
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top