By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,343 Members | 925 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,343 IT Pros & Developers. It's quick & easy.

clear textboxes

P: n/a
I think I have asked this before, :-) but old posts are deleted it seems,

How do you clear textboxes in a form, (on submit)?
thanks

portroe

Nov 20 '05 #1
Share this Question
Share on Google+
8 Replies


P: n/a
is this webforms ?
Portroe wrote:
I think I have asked this before, :-) but old posts are deleted it
seems,

How do you clear textboxes in a form, (on submit)?
thanks

portroe


--
Best Regards - OHM

O_H_M{at}BTInternet{dot}com
Nov 20 '05 #2

P: n/a
Cor
Hi portroe,

I asume it is a webform,
most simple is texbox1.visible = false,
It is not gone, but I think that this is for a not dynamicly built textbox
on a webform the most simple.

If you did build it dynamicly (or on a winform) you can also say
me.controls.remove(textbox1)

I hope this helps,

Cor

I think I have asked this before, :-) but old posts are deleted it seems,

How do you clear textboxes in a form, (on submit)?

Nov 20 '05 #3

P: n/a
"Portroe" <Po*****@nospam.com> schrieb
I think I have asked this before, :-) but old posts are deleted it
seems,


http://groups.google.com/advanced_group_search
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #4

P: n/a
I think I was vague with my question,

I meant to clear the contents of the text box, (after I have read the data)

thanks

Portroe wrote:
I think I have asked this before, :-) but old posts are deleted it seems,

How do you clear textboxes in a form, (on submit)?
thanks

portroe


Nov 20 '05 #5

P: n/a
Hi,

Dim ctrl As Control

For Each ctrl In Me.Controls

If TypeOf ctrl Is TextBox Then ctrl.Text = ""

Next
Ken
-----------------
"Portroe" <Po*****@nospam.com> wrote in message
news:e$**************@TK2MSFTNGP11.phx.gbl...
I think I have asked this before, :-) but old posts are deleted it seems,

How do you clear textboxes in a form, (on submit)?
thanks

portroe

Nov 20 '05 #6

P: n/a
* "Ken Tucker [MVP]" <vb***@bellsouth.net> scripsit:
Dim ctrl As Control

For Each ctrl In Me.Controls

If TypeOf ctrl Is TextBox Then ctrl.Text = ""

Next


Only a little note: This won't clear nested textboxes.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #7

P: n/a
Cor
> > Dim ctrl As Control

For Each ctrl In Me.Controls

If TypeOf ctrl Is TextBox Then ctrl.Text = ""

Next


Only a little note: This won't clear nested textboxes.

One little extra note: If it is a webform it won't clear any textbox in this
way

:-))

Cor
Nov 20 '05 #8

P: n/a
* "Cor" <no*@non.com> scripsit:
For Each ctrl In Me.Controls

If TypeOf ctrl Is TextBox Then ctrl.Text = ""

Next


Only a little note: This won't clear nested textboxes.

One little extra note: If it is a webform it won't clear any textbox in this
way


LOL

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.