HighTechTalks DotNet Forums  

Question to intercept the Events of the DTE

Dotnet Framework (WinForms DesignTime) microsoft.public.dotnet.framework.windowsforms.designtime


Discuss Question to intercept the Events of the DTE in the Dotnet Framework (WinForms DesignTime) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Rauwolf Anton
 
Posts: n/a

Default Question to intercept the Events of the DTE - 04-20-2004 , 05:06 PM






Problem has to intercept around the events of the IDE,

in a UserControl would like I the behavior (while the DesignMode) the
IDE to intercept, as soon as the window of the IDE in Maximize changes
or Minimize or the Windows of the IDE are moved. Also by means of
'WindowMoved' the EnvDTE.DTE reached, only is lost during the work to
short time of the Handler apparent. After restart of the project again
the Moved Ereigniss is then only implemented. Also as soon as one adds a
Toolbox Item or is the Handler deletes thereafter without function.

I hope myself can someone help and that the following code am
understandable.


CODE of the user control
------------------------

Imports EnvDTE

Protected Overrides Sub OnLoad(ByVal e As System.EventArgs)
Dim envDTE As EnvDTE.DTE

envDTE = CType(Me.ParentForm.Site.GetService(GetType(EnvDTE .DTE)),_
EnvDTE.DTE)

AddHandler envDTE.Events.WindowEvents.WindowMoved, AddressOf_
WindowEvents_WindowMoved
End Sub

Private Sub WindowEvents_WindowMoved(ByVal Window As EnvDTE.Window,_
ByVal Top As Integer, ByVal Left As Integer, ByVal Width As Integer,_
ByVal Height As Integer)
MsgBox("moved")
End Sub


-----------
Please Help me !!!!
Anton


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.