CAD Focus
    <DllImport("user32.dll")> _
    Private Shared Function SetFocus(hwnd As System.IntPtr) As System.IntPtr
    End Function
SetFocus(Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.Window.Handle)
Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.Window.Handle
我认为它可以在AutoCAD 2010中使用,甚至可以使用在更早的版本中。
但是其他解决方案Utils.SetFocusToDwgView()和MainWindow.Focus()更简单。
 BlockPreview
 Control color default forms color
欢迎关注微信公众账号ByCAD
