0

I have about 30 textboxes on my form, and I want them to load "0.000" when the app loads. As it is now, I just have each one listed, Hows can i use a variable to call any textbox, or a "tagged" textbox so it will load what I want without having to list each one independently?

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    SCutL.Text = "0.000"
    NeSize.Text = "0.000"
    StrHole.Text = "0.000"
    NeSpace.Text = "0.000"
  • 1
    When posting a question about your code, it's always a good idea to add a tag for the language you're using. – Ken White Apr 10 '17 at 23:42
  • I tried to edit the tags, but it says I need a better reputation. – Kevin Ouellette Apr 10 '17 at 23:45
  • Possible duplicate of [count the number of textboxes used and use that value to end loop](http://stackoverflow.com/questions/17427033/count-the-number-of-textboxes-used-and-use-that-value-to-end-loop) – Ken White Apr 10 '17 at 23:46
  • Just [edit] your post and add the tag. You can't edit tags without sufficient rep, but you can always edit your own question or answer. – Ken White Apr 10 '17 at 23:51
  • I try to edit this listing and it wont let me choose "english" as a tag. it wants me to pick from an existing list of tags until I have a reputation of 1500. – Kevin Ouellette Apr 11 '17 at 01:31
  • LOL. Not the language you're writing your text in. The **programming language** you're using (C, VB.Net, C#, Java). We can read the words in your sentences to see what language you're using there. Adding a tag for the **language you're coding in** will get the question in front of the people who can answer it. – Ken White Apr 11 '17 at 01:34

0 Answers0