求大神指导
点击上图关闭按钮,出现下图这种情况,右边有一小块灰色,请问各位大神,怎么去掉灰色,让CAD当前活动窗体最大化。
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]