how to clear all text box??
i always use this :

text1.text = ""
text2.text = ""
text3.text = ""
....

but how about if i have many text box?
there are an other way to do this???

Please help. ASAP.
best regards

Recommended Answers

All 5 Replies

try this :

For Each controlx In Form3.Controls
    If TypeOf controlx Is TextBox Then controlx.Text = ""
Next controlx
commented: worked +1

oh, so fast.
and thanks. it working like a charm.

you're welcome dnk.

you're welcome dnk.:)

Thank u
Jx_Man

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.