473,408 Members | 2,113 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

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 1883
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: p s | last post by:
hi can someone tell me how to ensure the height of my window is always exact? (excluding titlebar) in VB6 e.g. if i set the form to 300 pixels, then the total height of the form takes into...
1
by: subash | last post by:
Hi All how to create controls in non-client area of forms or usercontrol.Can any one help in getting information on this or solution for this. regards subash
2
by: PC Datasheet | last post by:
I have a pop-up form with a combobox. In the form's open event I dropdown the combox's list. I have everything on the form locked down so the user can not collapse the combobox by clicking...
2
by: Gregory Hawke | last post by:
What would be the easiest way of painting a titlebar in a form? Setting the background property of a derived System.Windows.Forms.Form only paints the client area. I need to paint the frame as...
6
by: Will Pittenger | last post by:
It must be top level. I can not write components with this version of C# (less than Professional). I do want a non-resizing border. I kept looking for a "ShowTitlebar" property (or something...
2
by: blesh | last post by:
Is it possible to remove the Titlebar from a Windows Form? I know I can create a custom region to essentially "hide" the title bar... but the only problem with that is the fact the the Width /...
3
by: Nathan Sokalski | last post by:
When I view any page in my application a second time, I recieve the following error: System.Web.TraceContext.AddNewControl(String id, String parentId, String type, Int32 viewStateSize) +313...
104
by: Colin McGuire | last post by:
Hi, is there a way to show a form without a titlebar (and therefore no control box/minimize box/title etc) but still have it appear looking like 3D? The property FormBorderStyle to None - this...
1
by: JohnR | last post by:
I have a form that is presented in an mdi child window. If the user hits exit or the X button on the titlebar of the mdi child form, that form's "closing" event fires and in that event I check to...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.