Originally Posted By: paul
and the control could have a few more tweaks.

That's part of the beauty of .Net. You actually can customize the controls. No need for hideous ActiveX interfaces and all that.

Sounds like you did it the hard way. This code will create an array full of buttons

Code:
  Dim buttons(10) As Button
  For buttonID As Integer = 1 To 10
      buttons(buttonID) = New Button
      buttons(buttonID).Top = buttonID * 30
      buttons(buttonID).Width = 100
      buttons(buttonID).Height = 25
      buttons(buttonID).Text = "Button #" & CStr(buttonID)
      buttons(buttonID).AccessibleDescription = "hey"
      buttons(buttonID).tag = "ho"
      Me.Controls.Add(buttons(buttonID))
  Next


This might not be the most elegant way, but it's certainly easy. Stress comes from craftsmen blaming their tools :P


Last edited by kallog; 04/13/11 10:51 AM.