Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / December 2005

Tip: Looking for answers? Try searching our database.

PLS HELP: Add a button in Command Box of a form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MuZZy - 18 Dec 2005 06:34 GMT
Hi,

I need to add a button to the Command Box (not sure if that's the
correct word for it) of the form - to the top right corner where
"Minimize", "Maximize" and "Close buttons" are. This button will be
"Full Screen" button.

I'm 100% sure it's possible as i've seen some apps adding this button
even to independent forms, but i can't seem to find a solution -
probably i'm using wrong terminology :)

Any ideas will be highly appreciated!

Thank you,
MuZZy
Jani Järvinen [MVP] - 18 Dec 2005 09:42 GMT
Hi MuZZy,

> I need to add a button to the Command Box (not sure if that's the correct
> word for it) of the form - to the top right corner where "Minimize",
> "Maximize" and "Close buttons" are.

The "Command Box" you are talking about is actually called the title bar of
the window, i.e. the usually blue bar that has the title of the window on
the left and the three buttons on the right.

There's simple example about how to add your custom buttons to a window's
title bar on The Code Project web site:

Adding a 'Minimize to tray'-button to a Form's caption bar:
http://www.codeproject.com/csharp/mintraybtn.asp

This is a simple example, but should get you going.

> I'm 100% sure it's possible as i've seen some apps adding this button even
> to independent forms, but i can't seem to find a solution.

Yes, it sure is possible. :-) Often it is just a matter of googling with the
correct terminology!

Oh, while I'm at it, here's a simple example if you want to customize the
system menu (or control menu) of the window as well:

Modify a Window's System Menu
http://www.developerfusion.co.uk/show/4655/

Hope this helps.

Signature

Regards,

Mr. Jani Järvinen
C# MVP
Helsinki, Finland
janij@removethis.dystopia.fi
http://www.saunalahti.fi/janij/


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.