Controls in Form Titlebar?

S

Sam Marrocco

Is it possible to place controls such as a checkbox or button in the
titlebar of a form?


--
==================================================================
Sam J. Marrocco
Sr. Visual Effects Artist/R&D
Travelling Pictures/GTN
Inferno, Flame, Maya, All that cool stuff!
"The fact that no one understands you doesn't make you an artist."
==================================================================
 
M

Mick Doherty

No.

However, you may CustomDraw the TitleBar and Draw a control in the TitleBar.
I did this in VB6, but have not tried it in DotNet. It was a Lot of work.

Another alternative is to remove the Titlebar from your form and draw a Fake
TitleBar in your forms ClientArea. One problem you'll encounter here is
MenuBar position. Docked Toolbars can be overcome simply by docking a Panel
to the Top of your form and drawing the Titlebar in that, Toolbars can then
Dock to the Panel. There is still a fair amount of work involved in this
Method, since you'll have to handle the Form movement and System Menu popup
from the Fake Titelbar.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top