|.夜、已深 发表于 2012-8-31 10:29:04

求大神指导


点击上图关闭按钮,出现下图这种情况,右边有一小块灰色,请问各位大神,怎么去掉灰色,让CAD当前活动窗体最大化。


huaxiamengqing 发表于 2012-9-7 12:41:09

Imports Autodesk.AutoCAD.Runtime
Imports Autodesk.AutoCAD.ApplicationServices
Imports Autodesk.AutoCAD.Windows

<CommandMethod("SizeDocumentWindow")> _
Public Sub SizeDocumentWindow()
'' Size the Document window
Dim acDoc As Document = Application.DocumentManager.MdiActiveDocument
acDoc.Window.WindowState = Window.State. Maximized
End Sub
页: [1]
查看完整版本: 求大神指导