<?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: Floating Userform on CAD screen in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/floating-userform-on-cad-screen/m-p/2611652#M14251</link>
    <description>You can forget the code from Excel example. &lt;BR /&gt;
&lt;BR /&gt;
The VBA implemented by AutoCAD has built-in way to show UserForm as either Modal or Modeless with Modal mode as default. Simply call&lt;BR /&gt;
&lt;BR /&gt;
UserForm.Show or UserForm.Show vbModal to get a modal form shown&lt;BR /&gt;
&lt;BR /&gt;
Or&lt;BR /&gt;
&lt;BR /&gt;
UserForm.Show vbModeless to get a floating form shown&lt;BR /&gt;
&lt;BR /&gt;
However, just showing UserForm as Modeless, you may not be able to do anything useful with the floating form, because the form does not hold focus. So, in order to use modeless form in Acad VBA, you need to use the form in conjuction with acFocusCtrlxx.dll (xx is Acad version number).</description>
    <pubDate>Wed, 06 Jan 2010 15:10:39 GMT</pubDate>
    <dc:creator>norman.yuan</dc:creator>
    <dc:date>2010-01-06T15:10:39Z</dc:date>
    <item>
      <title>Floating Userform on CAD screen</title>
      <link>https://forums.autodesk.com/t5/vba-forum/floating-userform-on-cad-screen/m-p/2611651#M14250</link>
      <description>Dear all,&lt;BR /&gt;
&lt;BR /&gt;
I want to create a userform floating on CAD screen.&lt;BR /&gt;
I find a example but it's in excel vba. I know nothing about API or Class Module theory&lt;BR /&gt;
&lt;BR /&gt;
Please help me change this code to use in Cad&lt;BR /&gt;
Thanks&lt;BR /&gt;
Here my attached drawing embeded with code from Excel&lt;BR /&gt;
&lt;BR /&gt;
http://www.cadviet.com/upfiles/2/modeless.dwg</description>
      <pubDate>Wed, 06 Jan 2010 04:10:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/floating-userform-on-cad-screen/m-p/2611651#M14250</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-06T04:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Floating Userform on CAD screen</title>
      <link>https://forums.autodesk.com/t5/vba-forum/floating-userform-on-cad-screen/m-p/2611652#M14251</link>
      <description>You can forget the code from Excel example. &lt;BR /&gt;
&lt;BR /&gt;
The VBA implemented by AutoCAD has built-in way to show UserForm as either Modal or Modeless with Modal mode as default. Simply call&lt;BR /&gt;
&lt;BR /&gt;
UserForm.Show or UserForm.Show vbModal to get a modal form shown&lt;BR /&gt;
&lt;BR /&gt;
Or&lt;BR /&gt;
&lt;BR /&gt;
UserForm.Show vbModeless to get a floating form shown&lt;BR /&gt;
&lt;BR /&gt;
However, just showing UserForm as Modeless, you may not be able to do anything useful with the floating form, because the form does not hold focus. So, in order to use modeless form in Acad VBA, you need to use the form in conjuction with acFocusCtrlxx.dll (xx is Acad version number).</description>
      <pubDate>Wed, 06 Jan 2010 15:10:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/floating-userform-on-cad-screen/m-p/2611652#M14251</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2010-01-06T15:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: Floating Userform on CAD screen</title>
      <link>https://forums.autodesk.com/t5/vba-forum/floating-userform-on-cad-screen/m-p/6961446#M14252</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Edit the property of your User form, and change the "ShowModal" option to False&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2017 14:43:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/floating-userform-on-cad-screen/m-p/6961446#M14252</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-21T14:43:55Z</dc:date>
    </item>
  </channel>
</rss>

