Does anyone know, can I only have one Setup Page on a Custom Task? When I add one, everything works fine. When I add a second page, it appears to crash on IEdmTaskProperties.SetSetupPages(). I even tried to add the first page twice in the event the second page (User Control) was misbehaving...
If someone could just confirm multiple setup pages works I could probably determine the rest.
Greg,
Partial code excerpt - One Setup Page...
//Page name that appears in the navigation pane of the Add Task dialog in the Administration tool
pages[0].mbsPageName = "Task";
pages[0].mlPageHwnd = _TaskSelectionPage.Handle.ToInt32();
pages[0].mpoPageImpl = _TaskSelectionPage;
// Submit custom setup pages
Properties.SetSetupPages(pages); // EdmTaskSetupPage[1]
Two Setup Pages...
//Page name that appears in the navigation pane of the Add Task dialog in the Administration tool
pages[0].mbsPageName = "Task";
pages[0].mlPageHwnd = _TaskSelectionPage.Handle.ToInt32();
pages[0].mpoPageImpl = _TaskSelectionPage;
pages[1].mbsPageName = "File Age";
pages[1].mlPageHwnd = _FileAgeSelectionPage.Handle.ToInt32();
pages[1].mpoPageImpl = _FileAgeSelectionPage;
// Submit custom setup pages
Properties.SetSetupPages(pages); // EdmTaskSetupPage[2]