<?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: AutoCAD 2012 and VBA Text not appearing in textbox in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/autocad-2012-and-vba-text-not-appearing-in-textbox/m-p/3399117#M11914</link>
    <description>&lt;P&gt;es, I agree about VBA and AutoCAD but until we get our major curriculum&amp;nbsp;change through, I am required to follow the abstract, so hopefully next time arounf (Spring of 2013) things will change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you all for the replies and help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cadprof&lt;/P&gt;</description>
    <pubDate>Wed, 04 Apr 2012 15:00:57 GMT</pubDate>
    <dc:creator>cadprof</dc:creator>
    <dc:date>2012-04-04T15:00:57Z</dc:date>
    <item>
      <title>AutoCAD 2012 and VBA Text not appearing in textbox</title>
      <link>https://forums.autodesk.com/t5/vba-forum/autocad-2012-and-vba-text-not-appearing-in-textbox/m-p/3398609#M11908</link>
      <description>&lt;DIV class="lia-message-body"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;AutoCAD 2012 is loaded on my office machine with WIndows 7 64 bit.&amp;nbsp; I have downloaded the correct vba module and installed.&amp;nbsp; After writing a simple program with two texboxes for user input and a calculation button with an answer box,&amp;nbsp; when running the cursor appears in the textbox but neither textbox will&amp;nbsp; accept input from the keyboard and the cursor does not move nor does the tab key work even with it set in the program.&amp;nbsp; Pressing the calculate button and a zero appears.&amp;nbsp; Any help would be deeply appreciated. In the toolbox I have added the AcFocusCtrl control, still no luck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Cadprof&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 04 Apr 2012 11:06:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/autocad-2012-and-vba-text-not-appearing-in-textbox/m-p/3398609#M11908</guid>
      <dc:creator>cadprof</dc:creator>
      <dc:date>2012-04-04T11:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD 2012 and VBA Text not appearing in textbox</title>
      <link>https://forums.autodesk.com/t5/vba-forum/autocad-2012-and-vba-text-not-appearing-in-textbox/m-p/3398847#M11909</link>
      <description>&lt;P&gt;Can you possible to send code?&lt;/P&gt;&lt;P&gt;It is more faster to get answer and more easier to us who want to help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2012 13:12:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/autocad-2012-and-vba-text-not-appearing-in-textbox/m-p/3398847#M11909</guid>
      <dc:creator>truss_85</dc:creator>
      <dc:date>2012-04-04T13:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD 2012 and VBA Text not appearing in textbox</title>
      <link>https://forums.autodesk.com/t5/vba-forum/autocad-2012-and-vba-text-not-appearing-in-textbox/m-p/3398911#M11910</link>
      <description>&lt;P&gt;I teach the very basics of coding with VBA in AutoCAD , so the following code is for one button to calculate and place an answer in the Anstxt textbox.&amp;nbsp; When I run the program and try to type in a length or width, nothing appears in the textbox.&amp;nbsp; I have added the&amp;nbsp;AcFocusCtrl control, but nothing happens.&amp;nbsp; Do you know of any problems with the VBA enabler and AutoCAD 2012?&amp;nbsp; I am running WIndows 7 Professional.&amp;nbsp; Also I noticed that when I click on a textbox to type in a number and then click the second box, I can see the cursor moving in AutoCAD.&amp;nbsp; When I click again on the program it regains control of the cursor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Private Sub CommandButton1_Click()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AnsTxt.Text = (Val(LenTxt.Text) * (Val(WidthTxt.Text)))&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;Private Sub Label2_Click()&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG align="center" border="0" title="First-Proj.jpg" alt="First-Proj.jpg" src="http://forums.autodesk.com/t5/image/serverpage/image-id/25037i534EFA39F3F52988/image-size/original?v=mpbl-1&amp;amp;px=-1" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2012 13:39:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/autocad-2012-and-vba-text-not-appearing-in-textbox/m-p/3398911#M11910</guid>
      <dc:creator>cadprof</dc:creator>
      <dc:date>2012-04-04T13:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD 2012 and VBA Text not appearing in textbox</title>
      <link>https://forums.autodesk.com/t5/vba-forum/autocad-2012-and-vba-text-not-appearing-in-textbox/m-p/3398977#M11911</link>
      <description>&lt;P&gt;Still teaching VBA for AutoCAD? Autodesk has been signalling the death of VBA in AutoCAD since ACAD2010 and 64-bit AutoCAD has been proving VBA in 64-bit Acad has not much practical use value.&amp;nbsp;One who&amp;nbsp;is learning VBA for AutoCAD now would soon find him/her wasting time on this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, what you described is typical with 64-bit Acad VBA in a Win7 box: in a modal user form, mouse cursor can be put into a text box, but key stroke will not enter anything into it; a command button needs to be clicked twice to activate the code in CommandButton_Click().&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In general adding an acFocusCtrl to the form solves the problem. In your case, you did mention that you added acFocsCtrl and it stil did not work. However, in the Userform picture you attached, I do not see there is an acFocusCtrl.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See my UserForm picture here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG align="center" border="0" title="UserForm.png" alt="UserForm.png" src="http://forums.autodesk.com/t5/image/serverpage/image-id/25043iD607655EDE88619B/image-size/original?v=mpbl-1&amp;amp;px=-1" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Before I drop the acFocusCtrl on the form, I cannot type into TextBox and need to click twice on a button. After drop the acFocsCtrl, the UserForm works as expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IMO, even VBA form works with the help of&amp;nbsp;acFocusCtrl, it is definitely not worth investing time/money to learn Acad VBA.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2012 14:13:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/autocad-2012-and-vba-text-not-appearing-in-textbox/m-p/3398977#M11911</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2012-04-04T14:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD 2012 and VBA Text not appearing in textbox</title>
      <link>https://forums.autodesk.com/t5/vba-forum/autocad-2012-and-vba-text-not-appearing-in-textbox/m-p/3399027#M11912</link>
      <description>&lt;DIV class="lia-message-body lia-component-body"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;Reason is, that there is no VBA for 64bit available from Microsoft, they did it just for 32bit and say if you have 64bit change to .NET platform and that's it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Autodesk did a trick to have it at least working, the create a separate 32bit-process doing the VBA-job and from 64bit-AutoCAD it sends all traffic through the operating-system to the 32bit-VBA, and every request from the VBA-process to any AutoCAD-geometry/variables/properties.... are also sent from the 32bit-process via operating-system to AutoCAD.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even if Microsoft Forms 2.0 Object Library is checked it won't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There will always be a lot of problem with vba in 64 bit. I suggest you to change to .NET platform like I do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also try code in 32 bit system it will work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 04 Apr 2012 14:32:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/autocad-2012-and-vba-text-not-appearing-in-textbox/m-p/3399027#M11912</guid>
      <dc:creator>truss_85</dc:creator>
      <dc:date>2012-04-04T14:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD 2012 and VBA Text not appearing in textbox</title>
      <link>https://forums.autodesk.com/t5/vba-forum/autocad-2012-and-vba-text-not-appearing-in-textbox/m-p/3399037#M11913</link>
      <description>&lt;P&gt;I did not see the message.&lt;/P&gt;&lt;P&gt;BTW I agree with you.&lt;/P&gt;&lt;P&gt;There is a solution with this but in 64 bit vba full of cracks..&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2012 14:36:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/autocad-2012-and-vba-text-not-appearing-in-textbox/m-p/3399037#M11913</guid>
      <dc:creator>truss_85</dc:creator>
      <dc:date>2012-04-04T14:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD 2012 and VBA Text not appearing in textbox</title>
      <link>https://forums.autodesk.com/t5/vba-forum/autocad-2012-and-vba-text-not-appearing-in-textbox/m-p/3399117#M11914</link>
      <description>&lt;P&gt;es, I agree about VBA and AutoCAD but until we get our major curriculum&amp;nbsp;change through, I am required to follow the abstract, so hopefully next time arounf (Spring of 2013) things will change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you all for the replies and help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cadprof&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2012 15:00:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/autocad-2012-and-vba-text-not-appearing-in-textbox/m-p/3399117#M11914</guid>
      <dc:creator>cadprof</dc:creator>
      <dc:date>2012-04-04T15:00:57Z</dc:date>
    </item>
  </channel>
</rss>

