internal void ShowDesignerActionPanel(IComponent relatedComponent, DesignerActionPanel panel, DesignerActionGlyph glyph)
        {
            if (this.designerActionHost == null)
            {
                this.designerActionHost          = new DesignerActionToolStripDropDown(this, this.mainParentWindow);
                this.designerActionHost.AutoSize = false;
                this.designerActionHost.Padding  = Padding.Empty;
                this.designerActionHost.Renderer = new NoBorderRenderer();
                this.designerActionHost.Text     = "DesignerActionTopLevelForm";
                this.designerActionHost.Closing += new ToolStripDropDownClosingEventHandler(this.toolStripDropDown_Closing);
            }
            this.designerActionHost.AccessibleName = System.Design.SR.GetString("DesignerActionPanel_DefaultPanelTitle", new object[] { relatedComponent.GetType().Name });
            panel.AccessibleName = System.Design.SR.GetString("DesignerActionPanel_DefaultPanelTitle", new object[] { relatedComponent.GetType().Name });
            this.designerActionHost.SetDesignerActionPanel(panel, glyph);
            Point screenLocation = this.UpdateDAPLocation(relatedComponent, glyph);

            if ((this.behaviorService != null) && this.behaviorService.AdornerWindowControl.DisplayRectangle.IntersectsWith(glyph.Bounds))
            {
                if ((this.mainParentWindow != null) && (this.mainParentWindow.Handle != IntPtr.Zero))
                {
                    System.Design.UnsafeNativeMethods.SetWindowLong(new HandleRef(this.designerActionHost, this.designerActionHost.Handle), -8, new HandleRef(this.mainParentWindow, this.mainParentWindow.Handle));
                }
                this.cancelClose = true;
                this.designerActionHost.Show(screenLocation);
                this.designerActionHost.Focus();
                this.designerActionHost.BeginInvoke(new EventHandler(this.OnShowComplete));
                glyph.InvalidateOwnerLocation();
                this.lastPanelComponent = relatedComponent;
                this.dapkb = new DesignerActionKeyboardBehavior(this.designerActionHost.CurrentPanel, this.serviceProvider, this.behaviorService);
                this.behaviorService.PushBehavior(this.dapkb);
            }
        }
 internal void ShowDesignerActionPanel(IComponent relatedComponent, DesignerActionPanel panel, DesignerActionGlyph glyph)
 {
     if (this.designerActionHost == null)
     {
         this.designerActionHost = new DesignerActionToolStripDropDown(this, this.mainParentWindow);
         this.designerActionHost.AutoSize = false;
         this.designerActionHost.Padding = Padding.Empty;
         this.designerActionHost.Renderer = new NoBorderRenderer();
         this.designerActionHost.Text = "DesignerActionTopLevelForm";
         this.designerActionHost.Closing += new ToolStripDropDownClosingEventHandler(this.toolStripDropDown_Closing);
     }
     this.designerActionHost.AccessibleName = System.Design.SR.GetString("DesignerActionPanel_DefaultPanelTitle", new object[] { relatedComponent.GetType().Name });
     panel.AccessibleName = System.Design.SR.GetString("DesignerActionPanel_DefaultPanelTitle", new object[] { relatedComponent.GetType().Name });
     this.designerActionHost.SetDesignerActionPanel(panel, glyph);
     Point screenLocation = this.UpdateDAPLocation(relatedComponent, glyph);
     if ((this.behaviorService != null) && this.behaviorService.AdornerWindowControl.DisplayRectangle.IntersectsWith(glyph.Bounds))
     {
         if ((this.mainParentWindow != null) && (this.mainParentWindow.Handle != IntPtr.Zero))
         {
             System.Design.UnsafeNativeMethods.SetWindowLong(new HandleRef(this.designerActionHost, this.designerActionHost.Handle), -8, new HandleRef(this.mainParentWindow, this.mainParentWindow.Handle));
         }
         this.cancelClose = true;
         this.designerActionHost.Show(screenLocation);
         this.designerActionHost.Focus();
         this.designerActionHost.BeginInvoke(new EventHandler(this.OnShowComplete));
         glyph.InvalidateOwnerLocation();
         this.lastPanelComponent = relatedComponent;
         this.dapkb = new DesignerActionKeyboardBehavior(this.designerActionHost.CurrentPanel, this.serviceProvider, this.behaviorService);
         this.behaviorService.PushBehavior(this.dapkb);
     }
 }