All Tags » DTE (RSS)

Browse Blog Posts by Tags

Showing related tags and posts for the Blogs application. See all tags in the site
  • Read-Only IDE Window

    Q : Is it possible to show users a VSTA IDE window but prevent them from editing the code? A : It may be possible to do this by calling IVsTextBuffer.SetStateFlags() with BUFFERSTATEFLAGS.BSF_USER_READONLY. If that doesn’t work, you could try creating a readonly line marker that encompasses the...
    Posted to VSTA Q & A Blog by BillL on 06-19-2009
    Filed under: Filed under: , ,
  • Intercept DTE Commands in C#

    Here's some sample C# code showing how to intercept DTE commands. _dispCommandEvents_BeforeExecuteEventHandler has a parameter that allows you to cancel execution of the command if that is what you want to do. private EnvDTE. CommandEvents mCommandNewProject; // set up events for IDE commands cmd...
    Posted to VSTA Q & A Blog by BillL on 05-28-2009
    Filed under: Filed under: ,
  • Monitor if the DTE is changed

    Q : Is there any event to monitor if the DTE solution, project, or source files have been changed? A : The events like those below should address your needs, though there is not a general ‘changed’ event for each object (solution, project, and source file). Here’s some helpful guidance...
    Posted to VSTA Q & A Blog by BillL on 05-27-2009
    Filed under: Filed under: , , ,
  • Saving DTE and other COM Event Hook-ups

    To avoid losing an event hook-up from a COM source it is necessary to hold a local reference to the source of the event to avoid unwanted garbage collection. This is a concern for VSTA hosts hooking into DTE events as well as VSTA add-ins which use a direct reference to a COM host instead of a proxy...
    Posted to Melody's VSTA Blog by Melody on 04-29-2009
    Filed under: Filed under: , , , , , ,
Page 1 of 1 (4 items)
Copyright Summit Software Company, 2008. All rights reserved.