<?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/modeless-forms/m-p/343472#M81483</link>
    <description>Thanks Ravi  that is a gem of a tip.&lt;BR /&gt;
&lt;BR /&gt;
I have one problem with it though, and it is probably something easy, but when I react to&lt;BR /&gt;
a "enter" in a text box with a standard KeyDown event,   I don't seem to be able to put&lt;BR /&gt;
the focus back on the text box afterwards, and consequently have to click on it to enter&lt;BR /&gt;
more info.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Kent&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Ravi Pothineni" &lt;RAVI.POTHINENI&gt; wrote in message&lt;BR /&gt;
news:FFC399020D169F85340F4866C410D94B@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Add reference to "C:\Program Files\Common Files\Autodesk&lt;BR /&gt;
&amp;gt; Shared\AcFocusCtrl.dll".&lt;BR /&gt;
&amp;gt; The control has a property "KeepFocus". Set it to True.&lt;BR /&gt;
&amp;gt; "Joe LeBaron" &lt;JOE&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:6B4D86A101F6BF7301D7BF07A707EF94@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; Yikes... Effective but ugly.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; "Terry W. Dotson" &lt;TWDOTSON&gt; wrote in message&lt;BR /&gt;
&amp;gt; &amp;gt; news:3B92F3E1.508AC49@dotsoft.com...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Joe LeBaron wrote:&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; but the form does not retain the focus to&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; allowing typing into a text box.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; You could bring up a modal InputBox upon the click event of the text&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; box, then pump it's results back into the text field.  It's not good but&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; its only workaround I know.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Terry&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;/TWDOTSON&gt;&lt;/JOE&gt;&lt;/RAVI.POTHINENI&gt;</description>
    <pubDate>Tue, 04 Sep 2001 11:12:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2001-09-04T11:12:33Z</dc:date>
    <item>
      <title>Modeless forms</title>
      <link>https://forums.autodesk.com/t5/vba-forum/modeless-forms/m-p/343467#M81478</link>
      <description>When I design a user form as modeless, I cannot keep the focus on the&lt;BR /&gt;
modless form (the focus always pops back to the Autocad Application window).&lt;BR /&gt;
I click on any object in the modless form and have it respon (ie command&lt;BR /&gt;
buttons, check boxes, etc...),  but the form does not retain the focus to&lt;BR /&gt;
allowing typing into a text box.&lt;BR /&gt;
&lt;BR /&gt;
I am using Autocad 2002.</description>
      <pubDate>Sun, 02 Sep 2001 08:45:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/modeless-forms/m-p/343467#M81478</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-09-02T08:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Modeless forms</title>
      <link>https://forums.autodesk.com/t5/vba-forum/modeless-forms/m-p/343468#M81479</link>
      <description>AutoCAD sends messages to all child windows to see if they want to&lt;BR /&gt;
retain focus when the mouse cursor moves off of the window. The&lt;BR /&gt;
VBA form is probably responding to the message and that's causing&lt;BR /&gt;
AutoCAD to take the focus. I believe that Autodesk has some kind of&lt;BR /&gt;
ActiveX control to deal with this.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Bill&lt;BR /&gt;
&lt;BR /&gt;
"Joe LeBaron" &lt;JOE&gt; wrote in message&lt;BR /&gt;
news:E2D186888E5A44F351A9F06EFDA7992B@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; When I design a user form as modeless, I cannot keep the focus on the&lt;BR /&gt;
&amp;gt; modless form (the focus always pops back to the Autocad Application&lt;BR /&gt;
window).&lt;BR /&gt;
&amp;gt; I click on any object in the modless form and have it respon (ie command&lt;BR /&gt;
&amp;gt; buttons, check boxes, etc...),  but the form does not retain the focus to&lt;BR /&gt;
&amp;gt; allowing typing into a text box.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I am using Autocad 2002.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/JOE&gt;</description>
      <pubDate>Sun, 02 Sep 2001 14:00:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/modeless-forms/m-p/343468#M81479</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-09-02T14:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Modeless forms</title>
      <link>https://forums.autodesk.com/t5/vba-forum/modeless-forms/m-p/343469#M81480</link>
      <description>Joe LeBaron wrote:&lt;BR /&gt;
 &lt;BR /&gt;
&amp;gt; but the form does not retain the focus to&lt;BR /&gt;
&amp;gt; allowing typing into a text box.&lt;BR /&gt;
&lt;BR /&gt;
You could bring up a modal InputBox upon the click event of the text&lt;BR /&gt;
box, then pump it's results back into the text field.  It's not good but&lt;BR /&gt;
its only workaround I know.&lt;BR /&gt;
&lt;BR /&gt;
Terry</description>
      <pubDate>Sun, 02 Sep 2001 19:07:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/modeless-forms/m-p/343469#M81480</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-09-02T19:07:13Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/modeless-forms/m-p/343470#M81481</link>
      <description>Yikes... Effective but ugly.&lt;BR /&gt;
&lt;BR /&gt;
"Terry W. Dotson" &lt;TWDOTSON&gt; wrote in message&lt;BR /&gt;
news:3B92F3E1.508AC49@dotsoft.com...&lt;BR /&gt;
&amp;gt; Joe LeBaron wrote:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; but the form does not retain the focus to&lt;BR /&gt;
&amp;gt; &amp;gt; allowing typing into a text box.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; You could bring up a modal InputBox upon the click event of the text&lt;BR /&gt;
&amp;gt; box, then pump it's results back into the text field.  It's not good but&lt;BR /&gt;
&amp;gt; its only workaround I know.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Terry&lt;/TWDOTSON&gt;</description>
      <pubDate>Mon, 03 Sep 2001 07:21:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/modeless-forms/m-p/343470#M81481</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-09-03T07:21:26Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/modeless-forms/m-p/343471#M81482</link>
      <description>Add reference to "C:\Program Files\Common Files\Autodesk&lt;BR /&gt;
Shared\AcFocusCtrl.dll".&lt;BR /&gt;
The control has a property "KeepFocus". Set it to True.&lt;BR /&gt;
"Joe LeBaron" &lt;JOE&gt; wrote in message&lt;BR /&gt;
news:6B4D86A101F6BF7301D7BF07A707EF94@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Yikes... Effective but ugly.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Terry W. Dotson" &lt;TWDOTSON&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:3B92F3E1.508AC49@dotsoft.com...&lt;BR /&gt;
&amp;gt; &amp;gt; Joe LeBaron wrote:&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; but the form does not retain the focus to&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; allowing typing into a text box.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; You could bring up a modal InputBox upon the click event of the text&lt;BR /&gt;
&amp;gt; &amp;gt; box, then pump it's results back into the text field.  It's not good but&lt;BR /&gt;
&amp;gt; &amp;gt; its only workaround I know.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Terry&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/TWDOTSON&gt;&lt;/JOE&gt;</description>
      <pubDate>Tue, 04 Sep 2001 10:28:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/modeless-forms/m-p/343471#M81482</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-09-04T10:28:25Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/modeless-forms/m-p/343472#M81483</link>
      <description>Thanks Ravi  that is a gem of a tip.&lt;BR /&gt;
&lt;BR /&gt;
I have one problem with it though, and it is probably something easy, but when I react to&lt;BR /&gt;
a "enter" in a text box with a standard KeyDown event,   I don't seem to be able to put&lt;BR /&gt;
the focus back on the text box afterwards, and consequently have to click on it to enter&lt;BR /&gt;
more info.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Kent&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Ravi Pothineni" &lt;RAVI.POTHINENI&gt; wrote in message&lt;BR /&gt;
news:FFC399020D169F85340F4866C410D94B@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Add reference to "C:\Program Files\Common Files\Autodesk&lt;BR /&gt;
&amp;gt; Shared\AcFocusCtrl.dll".&lt;BR /&gt;
&amp;gt; The control has a property "KeepFocus". Set it to True.&lt;BR /&gt;
&amp;gt; "Joe LeBaron" &lt;JOE&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:6B4D86A101F6BF7301D7BF07A707EF94@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; Yikes... Effective but ugly.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; "Terry W. Dotson" &lt;TWDOTSON&gt; wrote in message&lt;BR /&gt;
&amp;gt; &amp;gt; news:3B92F3E1.508AC49@dotsoft.com...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Joe LeBaron wrote:&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; but the form does not retain the focus to&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; allowing typing into a text box.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; You could bring up a modal InputBox upon the click event of the text&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; box, then pump it's results back into the text field.  It's not good but&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; its only workaround I know.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Terry&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;/TWDOTSON&gt;&lt;/JOE&gt;&lt;/RAVI.POTHINENI&gt;</description>
      <pubDate>Tue, 04 Sep 2001 11:12:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/modeless-forms/m-p/343472#M81483</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-09-04T11:12:33Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/modeless-forms/m-p/343473#M81484</link>
      <description>I am trying to do the same thing with acad 2ki but I do not have the dll&lt;BR /&gt;
file, is there another way to do this in a2ki ?? or is there somewhere I can&lt;BR /&gt;
get it from ??&lt;BR /&gt;
Many thanks&lt;BR /&gt;
Mark&lt;BR /&gt;
&lt;BR /&gt;
"Ravi Pothineni" &lt;RAVI.POTHINENI&gt; wrote in message&lt;BR /&gt;
news:FFC399020D169F85340F4866C410D94B@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Add reference to "C:\Program Files\Common Files\Autodesk&lt;BR /&gt;
&amp;gt; Shared\AcFocusCtrl.dll".&lt;BR /&gt;
&amp;gt; The control has a property "KeepFocus". Set it to True.&lt;BR /&gt;
&amp;gt; "Joe LeBaron" &lt;JOE&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:6B4D86A101F6BF7301D7BF07A707EF94@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; Yikes... Effective but ugly.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; "Terry W. Dotson" &lt;TWDOTSON&gt; wrote in message&lt;BR /&gt;
&amp;gt; &amp;gt; news:3B92F3E1.508AC49@dotsoft.com...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Joe LeBaron wrote:&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; but the form does not retain the focus to&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; allowing typing into a text box.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; You could bring up a modal InputBox upon the click event of the text&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; box, then pump it's results back into the text field.  It's not good&lt;BR /&gt;
but&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; its only workaround I know.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Terry&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;/TWDOTSON&gt;&lt;/JOE&gt;&lt;/RAVI.POTHINENI&gt;</description>
      <pubDate>Tue, 04 Sep 2001 23:34:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/modeless-forms/m-p/343473#M81484</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-09-04T23:34:18Z</dc:date>
    </item>
  </channel>
</rss>

