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)
Solved! Go to Solution.
Solved by StormyC. Go to Solution.
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
}