I'm sure more than one opportunity we have to use For's nested, are very useful for a lot of homework.
Then I show a simple example that uses two nested For to represent the multiplication tables from one to ten.
Create a new form and copy the following code in the load event.
[Code lang = "vbnet"]
Private Sub Form1_Load (ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim table As New TextBox
tablas.Multiline = True
tablas.ScrollBars = ScrollBars.Vertical
tablas.Dock = DockStyle.Fill
Me.Controls.Add (tables)
tablas.Text = "Table S" & vbCrLf
tablas.Text & = "==========" & vbCrLf & vbCrLf
For i As Integer = 1 To 10
tablas.Text & = String.Format ("Table {0}", i) & vbCrLf
tablas.Text & = "-------" & vbCrLf
For a As Integer = 1 To 10
tablas.Text & = i.ToString & "x" & a.ToString & "=" & (i * a). ToString & vbCrLf
Next
& = vbCrLf tablas.Text
Next
End Sub
[/ Code]
Now only remains to run the program to display the result on the form.
Sorry but I said that is not declared the name amp
This very well this example a bit complicated for those who go too interesting beginning but I like to think I'm on track ...
Hey and how often updated?
I already finished the samples, controls, definitions, functions, etc, etc ...
realmete is well explained
hello I need help starting to use visual Stoi but sta bn komplikado ayudme tuturiales send me to my email
programilla Stoi making a game type and do not even sound like putting a label thanks