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 / Windows Forms / WinForm General / September 2004

Tip: Looking for answers? Try searching our database.

Replace Default Context Menu for Titlebar

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jason - 10 Sep 2004 17:27 GMT
Can I replace the standard Restore, Move, Size, etc. context menu that
appears on the titlebar with my own?

- Jason
lukasz - 10 Sep 2004 22:15 GMT
One option is to remove the standard menu along with the icon and draw the
icon and menu on your own, but it'll not change the menu when you
right-click the window's button in the taskbar. An other possibility is to
use shell functions to add extra menu items to your form's system menu, and
these changes will be visible in both the titlebar and taskbar; I don't know
if you can remove items this way.

> Can I replace the standard Restore, Move, Size, etc. context menu that
> appears on the titlebar with my own?
>
> - Jason
Mick Doherty - 10 Sep 2004 22:32 GMT
You can modify the appearance and remove and add menuitems to the Window
Menu, but you'll need to do it via Interop.
Theres a basic Window Menu manipulation example on my site:
http://dotnetrix.co.uk/menus.html

Signature

Mick Doherty
http://dotnetrix.co.uk/nothing.html

> Can I replace the standard Restore, Move, Size, etc. context menu that
> appears on the titlebar with my own?
>
> - Jason
Jason - 14 Sep 2004 16:39 GMT
Thank you. The information was very helpful.

> You can modify the appearance and remove and add menuitems to the Window
> Menu, but you'll need to do it via Interop.
[quoted text clipped - 10 lines]
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.742 / Virus Database: 495 - Release Date: 19/08/2004

Rate this thread:







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.