<?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: in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/modal-dialog-in-vb/m-p/349023#M77351</link>
    <description>Your form must be wrapped in an ActiveX class in the VB&lt;BR /&gt;
ActiveX DLL.&lt;BR /&gt;
&lt;BR /&gt;
This allows you to create an instance of it in VBA, which&lt;BR /&gt;
will be loaded into AutoCAD's process.&lt;BR /&gt;
&lt;BR /&gt;
You would add a method on your class that can be called&lt;BR /&gt;
when you load it into VBA, and that method can show your&lt;BR /&gt;
form.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Kathleen LIston" &lt;KATHLEEN&gt; wrote in message&lt;BR /&gt;
news:11955579F54329C579D6A17E426CD125@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Thank you for responding. I can't find documentation to walk through this&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; process. I assume I have to make the DLL in Visual Basic then somehow load&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; in to ACAD VB, but haven't figured out how I reference it. I am able to&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; insert it as a reference, but not actually load (formx) that is stored in&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; the dll. Do I need to move all my code and functions to Visual Basic&lt;BR /&gt;
outside&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; of AutoCAD VB? and then compile it and load it?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; -Kathleen Liston&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Tony Tanzillo" &lt;TONY.TANZILLO&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:8679D9E04AFB1467AB6E8DB70478D65E@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; You could create an ActiveX Dll and put your VB form in it,&lt;BR /&gt;
&amp;gt; &amp;gt; load it using VBA, and show it. This will cause it to be&lt;BR /&gt;
&amp;gt; &amp;gt; modal rather than modeless.  Putting the form in an ActiveX&lt;BR /&gt;
&amp;gt; &amp;gt; DLL and loading it into AutoCAD also makes many AutoCAD&lt;BR /&gt;
&amp;gt; &amp;gt; ActiveX operations run up to 10X faster than they do when&lt;BR /&gt;
&amp;gt; &amp;gt; called from another process.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; "Kathleen LIston" &lt;KATHLEEN&gt; wrote in message&lt;BR /&gt;
&amp;gt; &amp;gt; news:9615A57BA0117F2393CDA17F9CC40CF0@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Is there any way to keep a form up while other actions take place with&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; visual basic or do I have to create an autocad dialog and call VB from&lt;BR /&gt;
&amp;gt; &amp;gt; that&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; dialog (if that is possible).&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Thanks, Kathleen Liston&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/KATHLEEN&gt;&lt;/TONY.TANZILLO&gt;&lt;/KATHLEEN&gt;</description>
    <pubDate>Fri, 01 Feb 2002 18:52:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2002-02-01T18:52:37Z</dc:date>
    <item>
      <title>modal dialog in VB?</title>
      <link>https://forums.autodesk.com/t5/vba-forum/modal-dialog-in-vb/m-p/349020#M77348</link>
      <description>Is there any way to keep a form up while other actions take place with&lt;BR /&gt;
visual basic or do I have to create an autocad dialog and call VB from that&lt;BR /&gt;
dialog (if that is possible).&lt;BR /&gt;
&lt;BR /&gt;
Thanks, Kathleen Liston</description>
      <pubDate>Fri, 01 Feb 2002 14:38:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/modal-dialog-in-vb/m-p/349020#M77348</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-02-01T14:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: modal dialog in VB?</title>
      <link>https://forums.autodesk.com/t5/vba-forum/modal-dialog-in-vb/m-p/349021#M77349</link>
      <description>You could create an ActiveX Dll and put your VB form in it,&lt;BR /&gt;
load it using VBA, and show it. This will cause it to be&lt;BR /&gt;
modal rather than modeless.  Putting the form in an ActiveX&lt;BR /&gt;
DLL and loading it into AutoCAD also makes many AutoCAD&lt;BR /&gt;
ActiveX operations run up to 10X faster than they do when&lt;BR /&gt;
called from another process.&lt;BR /&gt;
&lt;BR /&gt;
"Kathleen LIston" &lt;KATHLEEN&gt; wrote in message&lt;BR /&gt;
news:9615A57BA0117F2393CDA17F9CC40CF0@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Is there any way to keep a form up while other actions take place with&lt;BR /&gt;
&amp;gt; visual basic or do I have to create an autocad dialog and call VB from&lt;BR /&gt;
that&lt;BR /&gt;
&amp;gt; dialog (if that is possible).&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Thanks, Kathleen Liston&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/KATHLEEN&gt;</description>
      <pubDate>Fri, 01 Feb 2002 14:45:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/modal-dialog-in-vb/m-p/349021#M77349</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-02-01T14:45:56Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/modal-dialog-in-vb/m-p/349022#M77350</link>
      <description>Thank you for responding. I can't find documentation to walk through this&lt;BR /&gt;
&lt;BR /&gt;
process. I assume I have to make the DLL in Visual Basic then somehow load&lt;BR /&gt;
&lt;BR /&gt;
in to ACAD VB, but haven't figured out how I reference it. I am able to&lt;BR /&gt;
&lt;BR /&gt;
insert it as a reference, but not actually load (formx) that is stored in&lt;BR /&gt;
&lt;BR /&gt;
the dll. Do I need to move all my code and functions to Visual Basic outside&lt;BR /&gt;
&lt;BR /&gt;
of AutoCAD VB? and then compile it and load it?&lt;BR /&gt;
&lt;BR /&gt;
-Kathleen Liston&lt;BR /&gt;
&lt;BR /&gt;
"Tony Tanzillo" &lt;TONY.TANZILLO&gt; wrote in message&lt;BR /&gt;
news:8679D9E04AFB1467AB6E8DB70478D65E@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; You could create an ActiveX Dll and put your VB form in it,&lt;BR /&gt;
&amp;gt; load it using VBA, and show it. This will cause it to be&lt;BR /&gt;
&amp;gt; modal rather than modeless.  Putting the form in an ActiveX&lt;BR /&gt;
&amp;gt; DLL and loading it into AutoCAD also makes many AutoCAD&lt;BR /&gt;
&amp;gt; ActiveX operations run up to 10X faster than they do when&lt;BR /&gt;
&amp;gt; called from another process.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Kathleen LIston" &lt;KATHLEEN&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:9615A57BA0117F2393CDA17F9CC40CF0@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; Is there any way to keep a form up while other actions take place with&lt;BR /&gt;
&amp;gt; &amp;gt; visual basic or do I have to create an autocad dialog and call VB from&lt;BR /&gt;
&amp;gt; that&lt;BR /&gt;
&amp;gt; &amp;gt; dialog (if that is possible).&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Thanks, Kathleen Liston&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/KATHLEEN&gt;&lt;/TONY.TANZILLO&gt;</description>
      <pubDate>Fri, 01 Feb 2002 16:58:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/modal-dialog-in-vb/m-p/349022#M77350</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-02-01T16:58:20Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/modal-dialog-in-vb/m-p/349023#M77351</link>
      <description>Your form must be wrapped in an ActiveX class in the VB&lt;BR /&gt;
ActiveX DLL.&lt;BR /&gt;
&lt;BR /&gt;
This allows you to create an instance of it in VBA, which&lt;BR /&gt;
will be loaded into AutoCAD's process.&lt;BR /&gt;
&lt;BR /&gt;
You would add a method on your class that can be called&lt;BR /&gt;
when you load it into VBA, and that method can show your&lt;BR /&gt;
form.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Kathleen LIston" &lt;KATHLEEN&gt; wrote in message&lt;BR /&gt;
news:11955579F54329C579D6A17E426CD125@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Thank you for responding. I can't find documentation to walk through this&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; process. I assume I have to make the DLL in Visual Basic then somehow load&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; in to ACAD VB, but haven't figured out how I reference it. I am able to&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; insert it as a reference, but not actually load (formx) that is stored in&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; the dll. Do I need to move all my code and functions to Visual Basic&lt;BR /&gt;
outside&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; of AutoCAD VB? and then compile it and load it?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; -Kathleen Liston&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Tony Tanzillo" &lt;TONY.TANZILLO&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:8679D9E04AFB1467AB6E8DB70478D65E@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; You could create an ActiveX Dll and put your VB form in it,&lt;BR /&gt;
&amp;gt; &amp;gt; load it using VBA, and show it. This will cause it to be&lt;BR /&gt;
&amp;gt; &amp;gt; modal rather than modeless.  Putting the form in an ActiveX&lt;BR /&gt;
&amp;gt; &amp;gt; DLL and loading it into AutoCAD also makes many AutoCAD&lt;BR /&gt;
&amp;gt; &amp;gt; ActiveX operations run up to 10X faster than they do when&lt;BR /&gt;
&amp;gt; &amp;gt; called from another process.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; "Kathleen LIston" &lt;KATHLEEN&gt; wrote in message&lt;BR /&gt;
&amp;gt; &amp;gt; news:9615A57BA0117F2393CDA17F9CC40CF0@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Is there any way to keep a form up while other actions take place with&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; visual basic or do I have to create an autocad dialog and call VB from&lt;BR /&gt;
&amp;gt; &amp;gt; that&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; dialog (if that is possible).&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Thanks, Kathleen Liston&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/KATHLEEN&gt;&lt;/TONY.TANZILLO&gt;&lt;/KATHLEEN&gt;</description>
      <pubDate>Fri, 01 Feb 2002 18:52:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/modal-dialog-in-vb/m-p/349023#M77351</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-02-01T18:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: modal dialog in VB?</title>
      <link>https://forums.autodesk.com/t5/vba-forum/modal-dialog-in-vb/m-p/349024#M77352</link>
      <description>Make your dialog modeless (vbmodeless)  add a reference to AutoCAD Focus&lt;BR /&gt;
Control for VBA Type Library.  Then add that control to your toolbox&lt;BR /&gt;
(AcFocusCtrl Class) and drop it onto your form.&lt;BR /&gt;
&lt;BR /&gt;
When you click your command button to do something, set the property&lt;BR /&gt;
keepfocus = false see below:&lt;BR /&gt;
&lt;BR /&gt;
Me.AcFocusCtrl1.KeepFocus = False&lt;BR /&gt;
&lt;BR /&gt;
When you want to return focus to your form (such as mouseover) use the&lt;BR /&gt;
following&lt;BR /&gt;
&lt;BR /&gt;
Me.AcFocusCtrl1.SetFocus&lt;BR /&gt;
&lt;BR /&gt;
To interact with your form you must set the KeepFocus property to true such&lt;BR /&gt;
as:&lt;BR /&gt;
&lt;BR /&gt;
Me.AcFocusCtrl1.KeepFocus = True&lt;BR /&gt;
&lt;BR /&gt;
Works like a charm for me!&lt;BR /&gt;
&lt;BR /&gt;
RBinning&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Kathleen LIston" &lt;KATHLEEN&gt; wrote in message&lt;BR /&gt;
news:9615A57BA0117F2393CDA17F9CC40CF0@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Is there any way to keep a form up while other actions take place with&lt;BR /&gt;
&amp;gt; visual basic or do I have to create an autocad dialog and call VB from&lt;BR /&gt;
that&lt;BR /&gt;
&amp;gt; dialog (if that is possible).&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Thanks, Kathleen Liston&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/KATHLEEN&gt;</description>
      <pubDate>Sat, 02 Feb 2002 20:53:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/modal-dialog-in-vb/m-p/349024#M77352</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-02-02T20:53:49Z</dc:date>
    </item>
  </channel>
</rss>

