- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I need to show a Child dialog from Joint dialog, but it seems not work. Dialog frame is show out, while context does not show out, it keep running. Does anyone know why? Is there a limit in API?
Code are something like:
at IRule:
public void GetUserPages(RulePageArray pagesRet, PropertySheetData pPropSheetData)
{
RulePage rulePage1 = m_Joint.CreateRulePage();
m_Page1 = new Page1(this);
rulePage1.hWnd = m_Page1.Handle.ToInt64();
pagesRet.Add(rulePage1);
}
at Page1:
private void mouse_Click(object sender, EventArgs e)
{
UserForm add = new UserForm();
add.Show(this); // method A
Autodesk.AutoCAD.ApplicationServices.Application.ShowModalDialog(Autodesk.AutoCAD.ApplicationServices.Application.MainWindow.Handle, add); // method B
Autodesk.AutoCAD.ApplicationServices.Application.ShowModelessDialog(Autodesk.AutoCAD.ApplicationServices.Application.MainWindow.Handle, add); // method C
// I tried 3 methods (A, B, & C), none of them works.
}
Please help if anyone know about it.
Regards,
Luke
Solved! Go to Solution.