creating a control
Posted: Thursday 19th March 2020 8:43am
I can create a series of button controls with:-
How can I access or change the properties of a particular button?
This is the only way I have at the moment:-
Any advice would be welcome
Code: Select all
for i = 0 to 5
With hBtn = New Button(Me) As "BtnTest"
.X = 10 * i
.Y = 10
.W = 10
.H = 10
.Name = "Btn" & i
.text = "+"
End With
next
This is the only way I have at the moment:-
Code: Select all
Dim hControl As Control
For Each hControl In Me.Controls
If hControl.Name = "Btn5" Then hControl.Hide
Next