Browse by Tags

  • 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...
    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;...
    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...
Copyright Summit Software Company, 2008. All rights reserved.