Confusing compile error for UIP StartTask method

  • Thread starter Thread starter BillyM
  • Start date Start date
B

BillyM

I have an MDI parent form called "MDIParentView" 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 navigatonGraphName)

My code for this is:

UIPManager.StartTask(MDIParentView, "Startup:);

This is generating the following compile error:

"MyCompany.Amount.WinUI.MDIParentView denotes a 'class' where a 'variable'
was expected"

This error makes no sense. Does anyone know what might be causing it.
 
The following took care of the problem:

MDIParentView mdiParentView = new MDIParentView();
UIPManager.StartTask(mdiParentView, "Startup");
 
Back
Top