codice:PublicClassForm1 PublicWithEvents myBottone AsButton PrivateSub Form1_Load(sender AsObject, e AsEventArgs) HandlesMyBase.Load Dim x = 12 Dim y = 12 Dim tagb = 1 ForEach Dir AsStringInDirectory.GetDirectories("C:\simbolico") Dim Dir2 = (Dir.Remove(0, 13)) Dim myBottone AsNewButton myBottone.Text = (Dir2) myBottone.Location = New System.Drawing.Point(x, y) myBottone.Name = (Dir2) myBottone.Width = (417) myBottone.Height = (76) myBottone.Tag = (tagb) Me.Controls.Add(myBottone) AddHandler myBottone.Click, AddressOf onClick_myBottone y = y + 100 tagb = tagb + 1 Next EndSub

Rispondi quotando
