example Forelayer
menu-designer-frmMain-Graphics:
click on Button: "btnErase":
error: if I uncheck [ ]visible
than the Button no more works - I dont like it :sign0013:
I will be glad if I can make a unvisible button on/over a (background-) graphic
simply with unchecking the visible checkbox (and so I dont need to make a image-Button)
When you set a Button's Visible parameter to False, this means that the button is no more available ! That's the purpose of this parameter.
To have an invisible button you can do it with:
- an ImageButton with it's Transparent parameter set to True
- directly with the form's MouseDown or MouseUp events, the program checks if the mouse pointer is in a given area and if yes executes the code.
Sub ImageButton1_Click
'// danke , so hab ich noch ein ImageButton1 eingefuegt:
'// so I added a ImageButton:
'// Designer-frmMain-Controls-ImageButton: name: "ImageButton1"
Msgbox("MyImageButton1_is clicked")
End Sub