I’m trying to create a textbox, where the user enters a number, and the output shows a word representing each digit, each word is in an individual label created by the code, regardless of how many digits are entered.
So if the user enters 153, the output will be:
I’m not sure how to break the input apart to separate each digit and create a label accordingly to the number of digits entered (e.g. if 3 digit number, create 3 labels). I know that after breaking the input apart, run those separated digits through case select, and then assign the output to a new label. I was able to find how to create a label, but I'm not sure how to add more than one label and move the label down, if more than one digit is entered, because "MyLinkLabel.Location = (10, -10)" will not work to move the label vertically down by 10 pixels.
The code below adds a single label to the form.
Dim MyLinkLabel As New Label() With MyLinkLabel .Location = New Point(10, 10) .Visible = True .AutoSize = True End With Me.Controls.Add(MyLinkLabel) MyLinkLabel.Text = "one"