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

AutoCAD Application Window Resize Event.

1 REPLY 1
SOLVED
Reply
Message 1 of 2
StormyC
547 Views, 1 Reply

AutoCAD Application Window Resize Event.

I am probably missing somthing really simple;

 

IIm trying to react to the AutoCAD application window being resized, that reaction is to move a form so that it stays in the bottom right hand corner of the AutoCAD application window.  However, I cant seem to find a way to react to an AutoCAD application window resize event.  It doesnt seem to be exposed..... Anyone help me out?

 

(C# / AutoCAD 2011)

1 REPLY 1
Message 2 of 2
StormyC
in reply to: StormyC

Well it looks like after hours of looking through the object browser I've found a solution and it works flawlessly...

Question is, is this ok to use??


using Autodesk.AutoCAD.Internal.Reactors;

ApplicationEventManager cadWinEvnts =
   Autodesk.AutoCAD.Internal.Reactors.ApplicationEventManager.Instance();

cadWinEvnts.ApplicationMainWindowMoved +=
   new ApplicationMainWindowMovedEventHandler(cadWinEvnts_ApplicationMainWindowMoved);

void cadWinEvnts_ApplicationMainWindowMoved(object sender, EventArgs e)
        {
            //Do Somthing
        }

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