Clearing Textbox Control
-
good day everyone, once again i need your help...("i do always need your help...") how to clear textbox control? i only do this manually like this : textbox1.text = "" my problem is, if i will have 10 more textbox in my form it will consume more time to do the same thing... anyone can help me, how to solve my problem of difficulties?.... i know its to simple for you guys... pls i need your help once again... thank you... Special Thanks to Sir Chris.. for giving your ideas...:-D
nothing is impossible.....
-
good day everyone, once again i need your help...("i do always need your help...") how to clear textbox control? i only do this manually like this : textbox1.text = "" my problem is, if i will have 10 more textbox in my form it will consume more time to do the same thing... anyone can help me, how to solve my problem of difficulties?.... i know its to simple for you guys... pls i need your help once again... thank you... Special Thanks to Sir Chris.. for giving your ideas...:-D
nothing is impossible.....
momooomooomomo wrote:
my problem is, if i will have 10 more textbox in my form it will consume more time to do the same thing...
It doesn't take that long, just change the TextBox value.
-
momooomooomomo wrote:
my problem is, if i will have 10 more textbox in my form it will consume more time to do the same thing...
It doesn't take that long, just change the TextBox value.
thats good and i appreciat your effort... but my problem is how to code on how to clear textbox without knowing that you have 10 or more textbox in a form?... that idea is great but i need more technical answer coz i already done this one textbox1.text = ""...
nothing is impossible.....
-
thats good and i appreciat your effort... but my problem is how to code on how to clear textbox without knowing that you have 10 or more textbox in a form?... that idea is great but i need more technical answer coz i already done this one textbox1.text = ""...
nothing is impossible.....
The only other thing I can think of is setting a Property Binding to each textbox and changing the property binding. That may not be how you want to do it, but I'm not sure how else too. Is the user going to be adding more textboxes to your form?
-
good day everyone, once again i need your help...("i do always need your help...") how to clear textbox control? i only do this manually like this : textbox1.text = "" my problem is, if i will have 10 more textbox in my form it will consume more time to do the same thing... anyone can help me, how to solve my problem of difficulties?.... i know its to simple for you guys... pls i need your help once again... thank you... Special Thanks to Sir Chris.. for giving your ideas...:-D
nothing is impossible.....
hi, this code snippet will clear all textboxes present on the windows form Dim ctrl As New Control For Each ctrl In Me.Controls If TypeOf ctrl Is System.Windows.Forms.TextBox Then ctrl.Text = "" End If Next Regards, Kapil Thakur (Where's there is Kapil , there is a way) - thakur.kapil@gmail.com