0

Hello all, im a beginner to VB.Net and kinda annoyed at the "not able to print to the screen and clear the screen facilities". Anyways i need to make a program to display the numbers 1-10 (a counter) on the form, my code so far is

Private Sub cmdStart_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdStart.Click
Dim counter As Integer
For counter = 1 To 10
txtbox1.Text = counter
Next counter
End Sub
End Class

it only is outputing the number 10 in my textbox ive created (txtbox1.Text) , ive word wrapped the textbox and it still isnt showing numbers 1-10 all below each other. Can someone please help me, is my code wrong? can someone post a solution please and ill be able to do all my other activities also, thanks.

3
Contributors
2
Replies
3
Views
10 Years
Discussion Span
Last Post by jbennet
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.