469,898 Members | 1,563 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,898 developers. It's quick & easy.

Controls in Form Titlebar?

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."
================================================== ================

Nov 20 '05 #1
4 1751
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.

"Sam Marrocco" <sa*@twmi.rr.com> wrote in message
news:PM******************@fe1.columbus.rr.com...
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."
================================================== ================

Nov 20 '05 #2
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.

"Sam Marrocco" <sa*@twmi.rr.com> wrote in message
news:PM******************@fe1.columbus.rr.com...
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."
================================================== ================

Nov 20 '05 #3
* Sam Marrocco <sa*@twmi.rr.com> scripsit:
Is it possible to place controls such as a checkbox or button in the
titlebar of a form?


You may translate this VB6 implementation:

<http://www.activevb.de/tipps/vb6tipps/tipp0164.html>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #4
* Sam Marrocco <sa*@twmi.rr.com> scripsit:
Is it possible to place controls such as a checkbox or button in the
titlebar of a form?


You may translate this VB6 implementation:

<http://www.activevb.de/tipps/vb6tipps/tipp0164.html>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by PC Datasheet | last post: by
2 posts views Thread by Gregory Hawke | last post: by
6 posts views Thread by Will Pittenger | last post: by
2 posts views Thread by blesh | last post: by
3 posts views Thread by Nathan Sokalski | last post: by
104 posts views Thread by Colin McGuire | last post: by
1 post views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.