I’m trying for the first time to ‘create’ a Control and use it, like this:
' Gambas class file
Public MyButton As New Button(Me)
Public Sub Form_Open()
With MyButton
.top = 10
.left = 50
.width = 60
.height = 30
.text = "Click !"
End With
End
Public Sub MyButton_Click()
Quit
End
Everything looks fine. The button appears where it should. Gambas doesn’t throw any errors at me.So why doesn’t clicking MyButton work?
I can’t find any really clear and simple examples on how to use created controls.