By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,911 Members | 1,213 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,911 IT Pros & Developers. It's quick & easy.

Controls in Form Titlebar?

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a
* 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

P: n/a
* 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.