Confusing compile error for UIP StartTask method

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • BillyM

    Confusing compile error for UIP StartTask method

    I have an MDI parent form called "MDIParentV iew" that inherits from the UIP
    Application Block's WinFormView. The method to start a task using this MDI
    form is defined as follows:

    public static void StartTask(Form parentForm, string navigatonGraphN ame)

    My code for this is:

    UIPManager.Star tTask(MDIParent View, "Startup:);

    This is generating the following compile error:

    "MyCompany.Amou nt.WinUI.MDIPar entView denotes a 'class' where a 'variable'
    was expected"

    This error makes no sense. Does anyone know what might be causing it.


  • BillyM

    #2
    Re: Confusing compile error for UIP StartTask method

    The following took care of the problem:

    MDIParentView mdiParentView = new MDIParentView() ;
    UIPManager.Star tTask(mdiParent View, "Startup");

    "BillyM" <nfr@nospam.com > wrote in message
    news:eglQ61rsDH A.2244@TK2MSFTN GP09.phx.gbl...[color=blue]
    > I have an MDI parent form called "MDIParentV iew" that inherits from the[/color]
    UIP[color=blue]
    > Application Block's WinFormView. The method to start a task using this MDI
    > form is defined as follows:
    >
    > public static void StartTask(Form parentForm, string[/color]
    navigatonGraphN ame)[color=blue]
    >
    > My code for this is:
    >
    > UIPManager.Star tTask(MDIParent View, "Startup:);
    >
    > This is generating the following compile error:
    >
    > "MyCompany.Amou nt.WinUI.MDIPar entView denotes a 'class' where a 'variable'
    > was expected"
    >
    > This error makes no sense. Does anyone know what might be causing it.
    >
    >[/color]


    Comment

    Working...