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!

How to get rid of a forms' caption bar

Status
Not open for further replies.

PeteG

Programmer
Feb 23, 2001
144
GB
Hi,
I'm sure this is simple but just cannot find out how to do it. I do not want to see the caption bar at the top of my form - the bar that contains the forms name. The only way I can find at the moment is to set the form borderstyle to 'none', but then I lose the border around the form which I would like to keep.
If I have to keep the caption bar visible, can I change the text within it and the background/fore colour (seems to inherit my Windows desktop colours at the moment)?

Thanks

Pete
 
OK - I found how to do that; just set the text value to "" and the ControlBox property to false. But that highlights another problem - once the caption bar disappears, there is no way to move the form. You don't have the caption bar to click and drag the form around. Anybody know of a way of changing the forms behaviour so that I can, say, click on the form background and be able to drag it?
 
Yeah Pete, you should be able to code your form to do that with the MouseMove event.
 
Yeah thanks - I'd just found that out when I got your response!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top