<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Changing the document window size with vb.net in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/changing-the-document-window-size-with-vb-net/m-p/3628428#M53191</link>
    <description>&lt;P&gt;This works in Map 3D 2011.&amp;nbsp; References are attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;CommandMethod("testwindow")&amp;gt; _
    Public Sub testwindowsize()
        Dim doc As acapp.Document = acapp.Application.DocumentManager.MdiActiveDocument()
        Dim docWindow As Window = doc.Window
        Dim size As Drawing.Size = docWindow.Size
        docWindow.WindowState = Window.State.Normal
        docWindow.Size = New Drawing.Size(500, 500)
    End Sub&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Sep 2012 22:00:33 GMT</pubDate>
    <dc:creator>fieldguy</dc:creator>
    <dc:date>2012-09-20T22:00:33Z</dc:date>
    <item>
      <title>Changing the document window size with vb.net</title>
      <link>https://forums.autodesk.com/t5/net-forum/changing-the-document-window-size-with-vb-net/m-p/3628342#M53189</link>
      <description>&lt;P&gt;I'm trying to change the active document window size with vb.net. This seems like it should be straightforward, but I'm having some trouble. Below is some code that I tried to use which I found on the AutoCAD DevBlog..&amp;nbsp;I thought I understood how this works, but I can't seem to import the correct references to make it work. Any help would be greatly appreciated.&lt;/P&gt;&lt;PRE&gt;  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(500, 500)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2012 20:33:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/changing-the-document-window-size-with-vb-net/m-p/3628342#M53189</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-20T20:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the document window size with vb.net</title>
      <link>https://forums.autodesk.com/t5/net-forum/changing-the-document-window-size-with-vb-net/m-p/3628396#M53190</link>
      <description>&lt;P&gt;Imports Autodesk.AutoCAD.ApplicationServices&lt;BR /&gt;Imports Autodesk.AutoCAD.Windows&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and changed size to drawing,size and it worked fine. in 2010&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What was the error?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2012 21:19:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/changing-the-document-window-size-with-vb-net/m-p/3628396#M53190</guid>
      <dc:creator>arcticad</dc:creator>
      <dc:date>2012-09-20T21:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the document window size with vb.net</title>
      <link>https://forums.autodesk.com/t5/net-forum/changing-the-document-window-size-with-vb-net/m-p/3628428#M53191</link>
      <description>&lt;P&gt;This works in Map 3D 2011.&amp;nbsp; References are attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;CommandMethod("testwindow")&amp;gt; _
    Public Sub testwindowsize()
        Dim doc As acapp.Document = acapp.Application.DocumentManager.MdiActiveDocument()
        Dim docWindow As Window = doc.Window
        Dim size As Drawing.Size = docWindow.Size
        docWindow.WindowState = Window.State.Normal
        docWindow.Size = New Drawing.Size(500, 500)
    End Sub&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2012 22:00:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/changing-the-document-window-size-with-vb-net/m-p/3628428#M53191</guid>
      <dc:creator>fieldguy</dc:creator>
      <dc:date>2012-09-20T22:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the document window size with vb.net</title>
      <link>https://forums.autodesk.com/t5/net-forum/changing-the-document-window-size-with-vb-net/m-p/3628898#M53192</link>
      <description>&lt;P&gt;Thanks for the help, but it won't build with 2013.&lt;/P&gt;&lt;P&gt;I checked, and I have all of the references that fieldguy has. With acad 2013, I know a number of items have changed in .net. I've tried a number of combinations of imported namespaces, but I get a message stating that 'Type Size is not defined".&lt;/P&gt;&lt;P&gt;I can get this to work in earlier versions, but unfortunately, I need it to work in 2013.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;btm&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2012 10:50:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/changing-the-document-window-size-with-vb-net/m-p/3628898#M53192</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-21T10:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the document window size with vb.net</title>
      <link>https://forums.autodesk.com/t5/net-forum/changing-the-document-window-size-with-vb-net/m-p/3629714#M53193</link>
      <description>&lt;P&gt;There's a lot of changes in AutoCAD 2013 that break existing code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See my &lt;A target="_self" href="http://www.theswamp.org/index.php?topic=42828.msg480399#msg480399"&gt;response&lt;/A&gt; to your Swamp Post:&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2012 18:47:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/changing-the-document-window-size-with-vb-net/m-p/3629714#M53193</guid>
      <dc:creator>DiningPhilosopher</dc:creator>
      <dc:date>2012-09-21T18:47:21Z</dc:date>
    </item>
  </channel>
</rss>

