Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

menu in a borderless form 1

Status
Not open for further replies.

MrsKensington

Programmer
Sep 26, 2001
28
GB
I have a borderless form that just has a label in it and is always the size of the label. I want to add a right click menu to it to close the program , stop it from being on top and other settings.
Whenever i add a menu (i set the parent menu item to visible = false, and all its children to visible = true) it adds a title bar an control box to my form (which i don't want!!)
How can I make a menu for my form without having the title bar?

Thanks alot

Mrs K Ford? There's an infinite number of monkeys outside wanting to talk to you about a script of Hamlet they've produced!!
 
Irritating, isn't it?

There are at least two ways of dealing with this.

The first, which isn't ideal as it leaves a thin outline around the form, is to clear the Caption, and to set the ControlBox property to false.

The second method, which is the one I tend to use, is to have a second (invisible) form acting as the host for all your popup menus, and then invoke them in any other form you like; popup menus don't care...
 
Thanks!
I've managed to make it look the same as it originally did using the caption = "" and controlBox = false way. I positioned the label at left = -10 and top = -10 and it looked exactly the same!

Thanks for your answer! Ford? There's an infinite number of monkeys outside wanting to talk to you about a script of Hamlet they've produced!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top