Controls in Form Titlebar?

  • Thread starter Thread starter Sam Marrocco
  • Start date Start date
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."
==================================================================
 
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.
 
Back
Top