Help request for displaying the task details user control in task addin

Hello All,

I am trying to get a user control to display for the task details in a task addin.

I have one working for the task setup but I can't get the task details one to display.

I did attach the debugger and stepped through the code and it goes through without errors but I don't get the extra tab and page with my user control.

I do have the flag added for details in OnTaskSetup.

Here is a snippet of the code to init and display the user control:

private static void OnTaskDetails(EdmCmd poCmd, Array ppoData)
        {
#if DEBUG
   MessageBox.Show("In OnTaskDetails - Attach Debugger");
#endif

   IEdmTaskInstance inst = (IEdmTaskInstance)poCmd.mpoExtra;

   EPDMTaskAddin.userControlInFlowTechEPDMTaskAddInDetails =
    new UserControlInFlowTechEPDMTaskAddinDetails();
   EPDMTaskAddin.userControlInFlowTechEPDMTaskAddInDetails.CreateControl();
   poCmd.mpoExtra = EPDMTaskAddin.userControlInFlowTechEPDMTaskAddInDetails;

   poCmd.mlParentWnd =
    EPDMTaskAddin.userControlInFlowTechEPDMTaskAddInDetails.Handle.ToInt32();
   poCmd.mbsComment = "Exported Files";

   EPDMTaskAddin.userControlInFlowTechEPDMTaskAddInDetails.LoadData(inst);
        }

Any suggestions, would be greatly appreciated,

Bob

SolidworksApi macros