[RESOLVED] programmatically clear the immediate (debug) window
how can i programmatically clear the immediate (debug) window?
thanks for your help
Re: programmatically clear the immediate (debug) window
http://www.codeguru.com/forum/showthread.php?t=393558
Second result in a Google search for clear immediate window.
Re: programmatically clear the immediate (debug) window
for anyone else looking for that, its:
vb Code:
Imports Extensibility
Imports EnvDTE
Imports EnvDTE80
Private Sub ClearImmediateWindow()
Dim dteObject As EnvDTE.DTE = System.Runtime.InteropServices.Marshal.GetActiveObject("VisualStudio.DTE.9.0") 'vb2008
Dim currentActiveWindow As Window = dteObject.ActiveWindow
dteObject.Windows.Item("{ECB7191A-597B-41F5-9843-03A4CF275DDE}").Activate() 'Immediate Window
dteObject.ExecuteCommand("Edit.SelectAll")
dteObject.ExecuteCommand("Edit.ClearAll")
currentActiveWindow.Activate()
End Sub
Re: programmatically clear the immediate (debug) window
Dont forget to mark your thread as resolved :D :D