Diky za vycerpavajici odpoved. Je pravdou to, ze nepotrebuji tlacitka nybrz textboxy. Resim to zatim nasledovne:
Public Class Form1
Public pole(10) As TextBox
Private Sub Button1_Click(ByVal sender As System.Object,_ ByVal e As System.EventArgs) Handles Button1.Click
Dim f As Integer
For f = 0 To 10
Dim box As New TextBox
box.Text = "a" + f.ToString
box.Name = "box" + f.ToString
box.Location = New Point(Rnd() * 200, Rnd() * 200)
pole(f) = box
Me.Controls.Add(box)
Next
End Sub
Je neco lepsiho?
|