Click here to Skip to main content
16,020,622 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Public txtRandomTextBox() As TextBox

Public Sub New()
txtRandomTextBox = New TextBox() {txt_FreqResolution, txt_Average, txt_bandWidth}
End Sub

I have a array of textbox control.
I want to set some default values in each of integer type.
How can i do so ?? in VB.NET


thanks
Posted
Updated 20-Feb-13 23:50pm
v2

1 solution

VB
For Each t As TextBox In txtRandomTextBox
        t.Text = defaultValue.ToString()
Next

where defaultValue is whatever the default value is that you need
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900