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");
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top