Yes, your code works for all version of Acad (on my Acad2006/7, and your
acad2008). However, the difference is how the dialog box is opened:
DialogBoxForm.ShowDialog();
or
Autodesk.AutoCAD.ApplicationServices.Application.ShowModal(Dialog(DialogForm);
With former, it works, while with latter, it does not. According to Acad
documentation, you SHOULD NOT use .NET built-in method Form.ShowDialog() to
open the dialogbox, instead, use
Autodesk.Au.......Application.ShowModalDialog(form) method. It also says,
with former, unexpected effect could happen, because you are not supposed to
do that.
In my developing, I always use
Auto...Application.ShowModalDialog()/ShowModelessDialog() to open the first
form. If I need open another dialog from the opened form, I tend to use
Form.ShowDialog().
So, to the OP, if you want to take unknown risk (or no risk at all, who
knows), against Autodesk's instruction, go ahead to use Form.ShowDialog(),
or you have to find other workaround, such as modeless dialog or
close(unload) and re-open the modal dialog between drawing being opening.
wrote in message news:5670898@discussion.autodesk.com...
2008 and yes this does work for me. Nothing special, that is the whole of
it.