.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Strange closing forms

6 REPLIES 6
Reply
Message 1 of 7
dmarcotte4
242 Views, 6 Replies

Strange closing forms

Maybe I am doing something wrong but when I call
this.Close();
on a form, If the command line is not docked and the dynamic input turned off, it does not release control correctly, the user must click on the drawing screen before entering a new command. Is this because I am using VS 2005 Beta 2?

Autocad 2006
VS 2005 Beta 2

Daniel
6 REPLIES 6
Message 2 of 7
Anonymous
in reply to: dmarcotte4

Do you use
Autodesk.AutoCAD.ApplicationServices.Application.ShowModalDialog() to
display the dialog?

Albert
wrote in message news:4965259@discussion.autodesk.com...
Maybe I am doing something wrong but when I call
this.Close();
on a form, If the command line is not docked and the dynamic input turned
off, it does not release control correctly, the user must click on the
drawing screen before entering a new command. Is this because I am using VS
2005 Beta 2?

Autocad 2006
VS 2005 Beta 2

Daniel
Message 3 of 7
dmarcotte4
in reply to: dmarcotte4

Hi Albert

That’s correct. I have a line
using AcadApp = Autodesk.AutoCAD.ApplicationServices.Application;

then I use

MyMainForm myForm = new MyMainForm();
AcadApp.ShowModalDialog(myForm);

I noticed the problem when my program didn’t perform the same at work where I have the command line and tool bars on a second monitor, where at home I have only one monitor and the command line docked. I guess I need to write code to ensure what gets focus after my form closes?

Thanks
Message 4 of 7
Anonymous
in reply to: dmarcotte4

I"m not seeing this problem. Does the layer dialog have the same problem on
your machine (it is also .net form)?

Albert
wrote in message news:4966275@discussion.autodesk.com...
Hi Albert

That's correct. I have a line
using AcadApp = Autodesk.AutoCAD.ApplicationServices.Application;

then I use

MyMainForm myForm = new MyMainForm();
AcadApp.ShowModalDialog(myForm);

I noticed the problem when my program didn't perform the same at work where
I have the command line and tool bars on a second monitor, where at home I
have only one monitor and the command line docked. I guess I need to write
code to ensure what gets focus after my form closes?

Thanks
Message 5 of 7
dmarcotte4
in reply to: dmarcotte4

Yep, it happens with the layer dialog also. I have tested this on other work centers at my company but it’s not much of a test base since they are about identical machines. Weird
Message 6 of 7
Anonymous
in reply to: dmarcotte4

What is your form's FormBorderStyle set to?

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com

wrote in message news:4967190@discussion.autodesk.com...
Yep, it happens with the layer dialog also. I have tested this on other work centers at my company but it’s not much of a test base since they are about identical machines. Weird
Message 7 of 7
dmarcotte4
in reply to: dmarcotte4

Hi Tony,

I have them using Fixed3D.

Daniel

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost