no titlebar, but want menus
I'm trying to get menus and want it invisible, also i dont want the titlebar. but for some reason, you cant get menus and no titlebar together for some reason. when the menu is implemented, the titlebar shows up no matter what. I tried disabling the menus and making it invisible, but the titlebar is still there. the only way to fix this is to delete the menu.
Re: no titlebar, but want menus
Unfortunately, you are correct, and I don't know of a way around this.
1 Attachment(s)
Re: no titlebar, but want menus
I'm not sure what you are talking about.
Just have a look at this form. It has menus but not titlebar.
EDIT: You can uncheck the visible property of top level menus (File, Edit etc.) to make them invisible.
Pradeep
Re: no titlebar, but want menus
The trick is to set ControlBox = False and Caption = "", so if form has visible menus then titlebar won't be shown and form can still be resizable (if you want to).
Re: no titlebar, but want menus
Re: no titlebar, but want menus
Bear in mind you'll always get a single pixel wide black (or some system colour) line around your form if you do that; and the reason is because to have menus you need a non-client area (that is the titlebar, border etc., as opposed to the content of your form which is termed the client area) and it has to be at least one pixel wide.