Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, everyone.
I have a small autocad plugin including license checking dialog.
I wanna make to request license key so it shows customized modal dialog before some commands work.
but after license key dialog exit AutoCAD does not work and not responsive.
my codes are followings.
IntPtr acadHandle = Application.MainWindow.Handle;
using(LicenseForm licfrm = new LicenseForm())
{
NativeWindow nativeWindow = new NativeWindow();
nativeWindow.AssignHandle(acadHandle);
licfrm.ShowDialog(nativeWindow);
nativeWindow.ReleaseHandle();
}
return;
How to solve it? I am enclosing working video.
Solved! Go to Solution.