Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DockingStateEnum give me Parameter Incorrect Exception

1 REPLY 1
Reply
Message 1 of 2
abdechafi.neji
160 Views, 1 Reply

DockingStateEnum give me Parameter Incorrect Exception

I'm trying to set the window docking to DockLeft but I'm getting an exeption ( Parameter is Incorrect ) 

 

  public static void LoadProjectsWindow(IntPtr pageHandle, string WindowName, string WindowInternalName, ref DockableWindow DockWindow)
        {
            DockableWindows windows;
            windows = m_DockableWindows;

            PojectsDockWindow = windows.Add(Resources.Projects_ClientID, WindowInternalName, WindowName);

            if (PojectsDockWindow == null)
                return;

            double screenWidth = System.Windows.SystemParameters.WorkArea.Width;
            int mDockWindowWidth = (int)(screenWidth / 7);


            PojectsDockWindow.DockingState = DockingStateEnum.kDockLeft; // Exception here
            PojectsDockWindow.Width = mDockWindowWidth;
            PojectsDockWindow.Visible = true;
            PojectsDockWindow.AddChild(pageHandle);
        }

 

 

How can I fix this problem? 

Tags (1)
Labels (2)
1 REPLY 1
Message 2 of 2

Try enable docking states before setting enum to DockingStates.

dockWindow.DisabledDockingStates = False

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators


Autodesk Design & Make Report