.NET

Reply
Distinguished Contributor
dmarcotte4
Posts: 195
Registered: ‎04-02-2005
Message 1 of 7 (94 Views)

Strange closing forms

94 Views, 6 Replies
09-23-2005 06:12 AM
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
*Albert Szilvasy
Message 2 of 7 (94 Views)

Re: Strange closing forms

09-23-2005 08:12 PM 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
Distinguished Contributor
dmarcotte4
Posts: 195
Registered: ‎04-02-2005
Message 3 of 7 (94 Views)

Re: Strange closing forms

09-24-2005 10:21 AM 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
*Albert Szilvasy
Message 4 of 7 (94 Views)

Re: Strange closing forms

09-24-2005 08:10 PM 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
Distinguished Contributor
dmarcotte4
Posts: 195
Registered: ‎04-02-2005
Message 5 of 7 (94 Views)

Re: Strange closing forms

09-26-2005 11:02 AM 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
*Tony Tanzillo
Message 6 of 7 (94 Views)

Re: Strange closing forms

09-26-2005 02:02 PM 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
Distinguished Contributor
dmarcotte4
Posts: 195
Registered: ‎04-02-2005
Message 7 of 7 (94 Views)

Re: Strange closing forms

09-26-2005 07:28 PM in reply to: dmarcotte4
Hi Tony,

I have them using Fixed3D.

Daniel
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.