I'm having an issue on a small program that I thought I would post here to see if anyone can provide some help. I'm trying to change the size of the AutoCAD document window with a simple program in vb.net.
Here's the code I have, which I beleive will work in earlier releases. Most of the code came from the AutoCAD DevBlog.
Dim doc As Document = Application.DocumentManager.MdiActiveDocument()
Dim docWindow As Window = doc.Window
Dim size As Size = docWindow.Size
docWindow.WindowState = Window.State.Normal
docWindow.Size = New Size(950, 580)
Window is a class of Autodesk.AutoCAD.Windows. However, there is no property, or method for changing the size. I have not been able to find a way to change the size in any other namespaces. I know I've done this in earlier releases. I'm sure I'm overlooking something simple. If anyone can provide some input I would greatly appreciate it.
Thanks
BrianM