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 / December 2004

Tip: Looking for answers? Try searching our database.

How to disable New/Close(Solution/Project) & Exit menu commands?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JD - 17 Dec 2004 18:47 GMT
Hi,
I developed a vsip package (project-language-editor) and I would like to
start VS.NET IDE using CoCreateInstance->DTE in so called -embedding mode
from an external application (host) almost like VS Macro Environment.

Before I display the IDE, I create/open a solution/project from the app-host
using DTE automation and I would like to disable the menu commands for
new/close solution/ project. I still need the Add New Items command/dialog
etc. I also need the Exit disabled; my app-host will exit the IDE using DTE.

Thank you
JD
thomas - 23 Dec 2004 10:27 GMT
Just implement the interface IOleCommandTarget and register it as
priority command target. Make sure that the Exec and especially the
QueryStatus functions return the right value, otherwise you'll disable
all commands in VS (you'll figure out what I mean :-)). You'll find the
command id's for create/open a solution... in the ctc files contained in
the vsip sdk.

Hope this helps,

Thomas

> Hi,
> I developed a vsip package (project-language-editor) and I would like to
[quoted text clipped - 8 lines]
> Thank you
> JD

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.