ARUP.IssueTracker.Navisworks.Plugin.CreateControlPane C# (CSharp) Method

CreateControlPane() public method

public CreateControlPane ( ) : Control
return System.Windows.Forms.Control
    public override Control CreateControlPane()
    {
      //create an ElementHost
      ElementHost eh = new ElementHost();

      

      //assign the control
      //eh.Anchor = AnchorStyles.Top;
      eh.Dock = DockStyle.Top;
      eh.Anchor = AnchorStyles.Top;
      ns = new NavisWindow();
      eh.Child = ns;
      eh.HandleCreated += eh_HandleCreated;
      eh.CreateControl();

      //return the ElementHost
      return eh;
    }