I have a matrix of buttons and I want by clicking any button to set a text (1 letter) in the button
like something : (matrixbut(i,j).text = inputbox(...
The sub :
Thanks for any response
like something : (matrixbut(i,j).text = inputbox(...
The sub :
Public Sub makebuttongrid() Dim i, j As Integer myFont = New System.Drawing.Font("Arial", 11, FontStyle.Bold) For i = 1 To 15 For j = 1 To 15 matrixbut(i, j) = New Button matrixbut(i, j).Left = start + i * 25 matrixbut(i, j).Top = start + j * 25 matrixbut(i, j).Width = 30 matrixbut(i, j).Height = 30 matrixbut(i, j).Visible = True matrixbut(i, j).Font = myfont Me.Controls.Add(matrixbut(i, j)) Next Next end sub
Thanks for any response
Last edited by a moderator: