Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
About Custom Menu
#1
Hi,

I'm new to this Mirage.
I would like to know, how can I setup my own custom menu window, so that
1. There is no menu bar/title bar (the one with the 'X' button)
2. There is a button inside the custom menu window, which if clicked will close the custom menu window (itself)

Please help
R
Reply
#2
To make the bar containing the X button disapear, click on the form, and in the properties change the value for "Control Box" from true to false.

To make your own X button, just make a picture box or even a label that just says "X" or something. Then in the click code put something like

Code:
End
or
Code:
Unload Me
Reply
#3
Mine gives error when the ControlBox is mentioned.
So, I try the BorderStyle = 0, and there.. no border anymore.. including the top menu bar.

Could you please let me know more about how to make the click code?
Reply
#4
Double click the control, and it'll bring up the _Click code of the control.

Say you have a picture box called picExit. You double click the picture box, and the code will come up with something like

Code:
Private Sub picExit_Click()

End Sub
Then in the picExit_Click sub, you could put something like this

Code:
Private Sub picExit_Click()
    Unload Me
End Sub
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)