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 / Visual Studio.NET / Extensibility / March 2007

Tip: Looking for answers? Try searching our database.

How to hide some menus or toolbars of VS2005

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
joe.liu@grapecity.com - 21 Mar 2007 03:38 GMT
Now, I'm creating a VSPackage project, I want to hide some specific menus
when my custome designer is inactive in the project. How can I do it ?
al meu - 21 Mar 2007 09:21 GMT
You could restrict the visibility of the affected menu items, toolbars to a
specific context GUID (in your ctc file). And from your code, you can than
activate/deactivate this context GUID:
- Query the service provider for the SID_SVsShellMonitorSelection
- on the resulting IVsMonitorSelection call GetCmdUIContextCookie
- by using the returned context UI cookie, on the IVsMonitorSelection call
SetCmdUIContext (activate = TRUE or FALSE) depending on the state.

Cheers,
Gabriel

> Now, I'm creating a VSPackage project, I want to hide some specific menus
> when my custome designer is inactive in the project. How can I do it ?
Joeliu - 23 Mar 2007 02:51 GMT
Thank you very much!

> You could restrict the visibility of the affected menu items, toolbars to
> a
[quoted text clipped - 10 lines]
>> Now, I'm creating a VSPackage project, I want to hide some specific menus
>> when my custome designer is inactive in the project. How can I do it ?

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.