public override void OnToolWindowCreated() { base.OnToolWindowCreated(); control.TrackSelection = (ITrackSelection)GetService(typeof(STrackSelection)); windowFrameEventsHandler = new WindowStatus(this); (this.Frame as IVsWindowFrame).SetProperty( (int)__VSFPROPID.VSFPROPID_ViewHelper, windowFrameEventsHandler); }