find textbox in window form
-
hi all, i have a form name "form1". in this form i have 20 textbox. i want to clear all the text in these textbox. 1. i am not want to write like this textbox1.clear ,textbox2.clear ETC. i want to run a loop an clear all the text in the textbox how can i do this or any one can simple way given to me Pls give with example vipin
-
hi all, i have a form name "form1". in this form i have 20 textbox. i want to clear all the text in these textbox. 1. i am not want to write like this textbox1.clear ,textbox2.clear ETC. i want to run a loop an clear all the text in the textbox how can i do this or any one can simple way given to me Pls give with example vipin
Similar to what is posted above, but without the unnecessary parts:
For Each control In this.Controls if TypeOf control is TextBox control.Text.Clear() end if Next
Current blacklist svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour -- modified at 6:56 Friday 28th April, 2006 -
hi all, i have a form name "form1". in this form i have 20 textbox. i want to clear all the text in these textbox. 1. i am not want to write like this textbox1.clear ,textbox2.clear ETC. i want to run a loop an clear all the text in the textbox how can i do this or any one can simple way given to me Pls give with example vipin
-
hi all, i have a form name "form1". in this form i have 20 textbox. i want to clear all the text in these textbox. 1. i am not want to write like this textbox1.clear ,textbox2.clear ETC. i want to run a loop an clear all the text in the textbox how can i do this or any one can simple way given to me Pls give with example vipin
hi, what you can do with your problem is Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click,button2.click,button3.click,button4.click as on single click of this button you can control other buttons also. i think this can solve your problem:-D
-
hi all, i have a form name "form1". in this form i have 20 textbox. i want to clear all the text in these textbox. 1. i am not want to write like this textbox1.clear ,textbox2.clear ETC. i want to run a loop an clear all the text in the textbox how can i do this or any one can simple way given to me Pls give with example vipin
create all the text box as array and use this following code private sub txtclear() dim i as integer for i = 0 to 19 text(i).text="" next i end sub sdgsdfsdfsdfsdfsdfsdfsdfsdfsdfsdf