返回AutoCAD主窗口
Dim w As Autodesk.AutoCAD.Windows.Window = Autodesk.AutoCAD.ApplicationServices.Application.MainWindow 设置Fomr窗体位置
f.Location = New System.Drawing.Point(w.Location.X + w.Size.Width / 2, w.Location.Y + w.Size.Height / 2)
显示窗体
Autodesk.AutoCAD.ApplicationServices.Application.ShowModalDialog(w, f, True)
或者Autodesk.AutoCAD.ApplicationServices.Application.ShowModelessDialog(w, f, True)
|