<?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 adding controls dynamically in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/adding-controls-dynamically/m-p/303375#M65177</link>
    <description>I'm using acad 2002 and I'm trying to add some controls dynamically. I have&lt;BR /&gt;
a form that has a multipage control on it. This control has pages added to&lt;BR /&gt;
it dynamically based on the number of drawings that are open. (this part&lt;BR /&gt;
I've got working). Where I'm having my problem is creating controls that are&lt;BR /&gt;
needed on this new page. I'm trying to create another multipage control on&lt;BR /&gt;
the new page which will have two pages with a  listview control on each of&lt;BR /&gt;
the subpages.&lt;BR /&gt;
&lt;BR /&gt;
If I could see an example of how any type of control is added dynamically,&lt;BR /&gt;
it would give me enough to figure it out.&lt;BR /&gt;
&lt;BR /&gt;
TIA&lt;BR /&gt;
&lt;BR /&gt;
Brent</description>
    <pubDate>Mon, 10 Mar 2003 11:23:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2003-03-10T11:23:28Z</dc:date>
    <item>
      <title>adding controls dynamically</title>
      <link>https://forums.autodesk.com/t5/vba-forum/adding-controls-dynamically/m-p/303375#M65177</link>
      <description>I'm using acad 2002 and I'm trying to add some controls dynamically. I have&lt;BR /&gt;
a form that has a multipage control on it. This control has pages added to&lt;BR /&gt;
it dynamically based on the number of drawings that are open. (this part&lt;BR /&gt;
I've got working). Where I'm having my problem is creating controls that are&lt;BR /&gt;
needed on this new page. I'm trying to create another multipage control on&lt;BR /&gt;
the new page which will have two pages with a  listview control on each of&lt;BR /&gt;
the subpages.&lt;BR /&gt;
&lt;BR /&gt;
If I could see an example of how any type of control is added dynamically,&lt;BR /&gt;
it would give me enough to figure it out.&lt;BR /&gt;
&lt;BR /&gt;
TIA&lt;BR /&gt;
&lt;BR /&gt;
Brent</description>
      <pubDate>Mon, 10 Mar 2003 11:23:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/adding-controls-dynamically/m-p/303375#M65177</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-03-10T11:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: adding controls dynamically</title>
      <link>https://forums.autodesk.com/t5/vba-forum/adding-controls-dynamically/m-p/303376#M65178</link>
      <description>You would do it the same way that you are adding tab pages, except that you&lt;BR /&gt;
add the new controls to the page's Controls collection.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Ed&lt;BR /&gt;
--&lt;BR /&gt;
&lt;BR /&gt;
"Brent" &lt;MYMAILNOW&gt; wrote in message&lt;BR /&gt;
news:126E3CC01C0F3E04CF9518FD10EAAA2C@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; I'm using acad 2002 and I'm trying to add some controls dynamically. I&lt;BR /&gt;
have&lt;BR /&gt;
&amp;gt; a form that has a multipage control on it. This control has pages added to&lt;BR /&gt;
&amp;gt; it dynamically based on the number of drawings that are open. (this part&lt;BR /&gt;
&amp;gt; I've got working). Where I'm having my problem is creating controls that&lt;BR /&gt;
are&lt;BR /&gt;
&amp;gt; needed on this new page. I'm trying to create another multipage control on&lt;BR /&gt;
&amp;gt; the new page which will have two pages with a  listview control on each of&lt;BR /&gt;
&amp;gt; the subpages.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; If I could see an example of how any type of control is added dynamically,&lt;BR /&gt;
&amp;gt; it would give me enough to figure it out.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; TIA&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Brent&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/MYMAILNOW&gt;</description>
      <pubDate>Mon, 10 Mar 2003 12:33:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/adding-controls-dynamically/m-p/303376#M65178</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-03-10T12:33:12Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/adding-controls-dynamically/m-p/303377#M65179</link>
      <description>I keep getting the error "Invalid Class String" when I try to create a&lt;BR /&gt;
control.&lt;BR /&gt;
&lt;BR /&gt;
Dim myCtrl as Control&lt;BR /&gt;
&lt;BR /&gt;
Set myCtrl = pgDwgX.Controls.Add("MSFORMS.textbox.1", "mytextbox",true)&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Ed Jobe" &lt;EDLJOBE&gt; wrote in message&lt;BR /&gt;
news:804F92752C0E2A068CE68ED8EB79E239@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; You would do it the same way that you are adding tab pages, except that&lt;BR /&gt;
you&lt;BR /&gt;
&amp;gt; add the new controls to the page's Controls collection.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; Ed&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Brent" &lt;MYMAILNOW&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:126E3CC01C0F3E04CF9518FD10EAAA2C@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; I'm using acad 2002 and I'm trying to add some controls dynamically. I&lt;BR /&gt;
&amp;gt; have&lt;BR /&gt;
&amp;gt; &amp;gt; a form that has a multipage control on it. This control has pages added&lt;BR /&gt;
to&lt;BR /&gt;
&amp;gt; &amp;gt; it dynamically based on the number of drawings that are open. (this part&lt;BR /&gt;
&amp;gt; &amp;gt; I've got working). Where I'm having my problem is creating controls that&lt;BR /&gt;
&amp;gt; are&lt;BR /&gt;
&amp;gt; &amp;gt; needed on this new page. I'm trying to create another multipage control&lt;BR /&gt;
on&lt;BR /&gt;
&amp;gt; &amp;gt; the new page which will have two pages with a  listview control on each&lt;BR /&gt;
of&lt;BR /&gt;
&amp;gt; &amp;gt; the subpages.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; If I could see an example of how any type of control is added&lt;BR /&gt;
dynamically,&lt;BR /&gt;
&amp;gt; &amp;gt; it would give me enough to figure it out.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; TIA&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Brent&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;/MYMAILNOW&gt;&lt;/EDLJOBE&gt;</description>
      <pubDate>Mon, 10 Mar 2003 15:12:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/adding-controls-dynamically/m-p/303377#M65179</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-03-10T15:12:11Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/adding-controls-dynamically/m-p/303378#M65180</link>
      <description>Try "Forms.TextBox.1".&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Ed&lt;BR /&gt;
--&lt;BR /&gt;
&lt;BR /&gt;
"Brent" &lt;MYMAILNOW&gt; wrote in message&lt;BR /&gt;
news:7C232D0585DD906B6AEE2530505A867A@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; I keep getting the error "Invalid Class String" when I try to create a&lt;BR /&gt;
&amp;gt; control.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Dim myCtrl as Control&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Set myCtrl = pgDwgX.Controls.Add("MSFORMS.textbox.1", "mytextbox",true)&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Ed Jobe" &lt;EDLJOBE&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:804F92752C0E2A068CE68ED8EB79E239@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; You would do it the same way that you are adding tab pages, except that&lt;BR /&gt;
&amp;gt; you&lt;BR /&gt;
&amp;gt; &amp;gt; add the new controls to the page's Controls collection.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt; &amp;gt; Ed&lt;BR /&gt;
&amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; "Brent" &lt;MYMAILNOW&gt; wrote in message&lt;BR /&gt;
&amp;gt; &amp;gt; news:126E3CC01C0F3E04CF9518FD10EAAA2C@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; I'm using acad 2002 and I'm trying to add some controls dynamically. I&lt;BR /&gt;
&amp;gt; &amp;gt; have&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; a form that has a multipage control on it. This control has pages&lt;BR /&gt;
added&lt;BR /&gt;
&amp;gt; to&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; it dynamically based on the number of drawings that are open. (this&lt;BR /&gt;
part&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; I've got working). Where I'm having my problem is creating controls&lt;BR /&gt;
that&lt;BR /&gt;
&amp;gt; &amp;gt; are&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; needed on this new page. I'm trying to create another multipage&lt;BR /&gt;
control&lt;BR /&gt;
&amp;gt; on&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; the new page which will have two pages with a  listview control on&lt;BR /&gt;
each&lt;BR /&gt;
&amp;gt; of&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; the subpages.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; If I could see an example of how any type of control is added&lt;BR /&gt;
&amp;gt; dynamically,&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; it would give me enough to figure it out.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; TIA&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Brent&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;/MYMAILNOW&gt;&lt;/EDLJOBE&gt;&lt;/MYMAILNOW&gt;</description>
      <pubDate>Mon, 10 Mar 2003 15:21:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/adding-controls-dynamically/m-p/303378#M65180</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-03-10T15:21:42Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/adding-controls-dynamically/m-p/303379#M65181</link>
      <description>Thanks Ed - that finally worked.&lt;BR /&gt;
&lt;BR /&gt;
I came across the "MSForms.Textbox.1" by scouring through so much stuff. In&lt;BR /&gt;
the future, where can I find what is the correct syntax to use in situations&lt;BR /&gt;
like this?&lt;BR /&gt;
&lt;BR /&gt;
"Ed Jobe" &lt;EDLJOBE&gt; wrote in message&lt;BR /&gt;
news:78C2E5ED736460F2143D198FA7577985@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Try "Forms.TextBox.1".&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; Ed&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Brent" &lt;MYMAILNOW&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:7C232D0585DD906B6AEE2530505A867A@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; I keep getting the error "Invalid Class String" when I try to create a&lt;BR /&gt;
&amp;gt; &amp;gt; control.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Dim myCtrl as Control&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Set myCtrl = pgDwgX.Controls.Add("MSFORMS.textbox.1", "mytextbox",true)&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; "Ed Jobe" &lt;EDLJOBE&gt; wrote in message&lt;BR /&gt;
&amp;gt; &amp;gt; news:804F92752C0E2A068CE68ED8EB79E239@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; You would do it the same way that you are adding tab pages, except&lt;BR /&gt;
that&lt;BR /&gt;
&amp;gt; &amp;gt; you&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; add the new controls to the page's Controls collection.&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; &amp;gt; Ed&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; &amp;gt; "Brent" &lt;MYMAILNOW&gt; wrote in message&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; news:126E3CC01C0F3E04CF9518FD10EAAA2C@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; I'm using acad 2002 and I'm trying to add some controls dynamically.&lt;BR /&gt;
I&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; have&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; a form that has a multipage control on it. This control has pages&lt;BR /&gt;
&amp;gt; added&lt;BR /&gt;
&amp;gt; &amp;gt; to&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; it dynamically based on the number of drawings that are open. (this&lt;BR /&gt;
&amp;gt; part&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; I've got working). Where I'm having my problem is creating controls&lt;BR /&gt;
&amp;gt; that&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; are&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; needed on this new page. I'm trying to create another multipage&lt;BR /&gt;
&amp;gt; control&lt;BR /&gt;
&amp;gt; &amp;gt; on&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; the new page which will have two pages with a  listview control on&lt;BR /&gt;
&amp;gt; each&lt;BR /&gt;
&amp;gt; &amp;gt; of&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; the subpages.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; If I could see an example of how any type of control is added&lt;BR /&gt;
&amp;gt; &amp;gt; dynamically,&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; it would give me enough to figure it out.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; TIA&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Brent&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&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;/MYMAILNOW&gt;&lt;/EDLJOBE&gt;&lt;/MYMAILNOW&gt;&lt;/EDLJOBE&gt;</description>
      <pubDate>Mon, 10 Mar 2003 15:36:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/adding-controls-dynamically/m-p/303379#M65181</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-03-10T15:36:02Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/adding-controls-dynamically/m-p/303380#M65182</link>
      <description>When in vbaide, Help&amp;gt;Contents&amp;gt;Microsoft Forms Reference&amp;gt;Microsoft Forms&lt;BR /&gt;
Object Model Reference&amp;gt;Methods&amp;gt;Add&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Ed&lt;BR /&gt;
--&lt;BR /&gt;
&lt;BR /&gt;
"Brent" &lt;MYMAILNOW&gt; wrote in message&lt;BR /&gt;
news:11F4513B381B384F362DA1404A3C7E7A@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Thanks Ed - that finally worked.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I came across the "MSForms.Textbox.1" by scouring through so much stuff.&lt;BR /&gt;
In&lt;BR /&gt;
&amp;gt; the future, where can I find what is the correct syntax to use in&lt;BR /&gt;
situations&lt;BR /&gt;
&amp;gt; like this?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Ed Jobe" &lt;EDLJOBE&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:78C2E5ED736460F2143D198FA7577985@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; Try "Forms.TextBox.1".&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt; &amp;gt; Ed&lt;BR /&gt;
&amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; "Brent" &lt;MYMAILNOW&gt; wrote in message&lt;BR /&gt;
&amp;gt; &amp;gt; news:7C232D0585DD906B6AEE2530505A867A@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; I keep getting the error "Invalid Class String" when I try to create a&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; control.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Dim myCtrl as Control&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Set myCtrl = pgDwgX.Controls.Add("MSFORMS.textbox.1",&lt;BR /&gt;
"mytextbox",true)&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; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; "Ed Jobe" &lt;EDLJOBE&gt; wrote in message&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; news:804F92752C0E2A068CE68ED8EB79E239@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; You would do it the same way that you are adding tab pages, except&lt;BR /&gt;
&amp;gt; that&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; you&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; add the new controls to the page's Controls collection.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Ed&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; "Brent" &lt;MYMAILNOW&gt; wrote in message&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; news:126E3CC01C0F3E04CF9518FD10EAAA2C@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; I'm using acad 2002 and I'm trying to add some controls&lt;BR /&gt;
dynamically.&lt;BR /&gt;
&amp;gt; I&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; have&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; a form that has a multipage control on it. This control has pages&lt;BR /&gt;
&amp;gt; &amp;gt; added&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; to&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; it dynamically based on the number of drawings that are open.&lt;BR /&gt;
(this&lt;BR /&gt;
&amp;gt; &amp;gt; part&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; I've got working). Where I'm having my problem is creating&lt;BR /&gt;
controls&lt;BR /&gt;
&amp;gt; &amp;gt; that&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; are&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; needed on this new page. I'm trying to create another multipage&lt;BR /&gt;
&amp;gt; &amp;gt; control&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; on&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; the new page which will have two pages with a  listview control on&lt;BR /&gt;
&amp;gt; &amp;gt; each&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; of&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; the subpages.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; If I could see an example of how any type of control is added&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; dynamically,&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; it would give me enough to figure it out.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; TIA&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; Brent&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&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;/MYMAILNOW&gt;&lt;/EDLJOBE&gt;&lt;/MYMAILNOW&gt;&lt;/EDLJOBE&gt;&lt;/MYMAILNOW&gt;</description>
      <pubDate>Mon, 10 Mar 2003 15:47:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/adding-controls-dynamically/m-p/303380#M65182</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-03-10T15:47:28Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/adding-controls-dynamically/m-p/303381#M65183</link>
      <description>Thanks for the reference information. In trying to follow the syntax, I'm&lt;BR /&gt;
running into the same type of error when I try to&lt;BR /&gt;
add a listview control. The control is referenced in vba and for the progid&lt;BR /&gt;
used in the add process, I've tried&lt;BR /&gt;
"MSComctllib.listview.1"&lt;BR /&gt;
"comctllib.listview.1"&lt;BR /&gt;
"comctl.listview.1" etc&lt;BR /&gt;
and I'm still getting invalid class string - sorry to bother you again. How&lt;BR /&gt;
does one find what progid should be used. I would have thought it would be&lt;BR /&gt;
listed in the object browser which lists it as MSComctlLib but that doesn't&lt;BR /&gt;
work.&lt;BR /&gt;
&lt;BR /&gt;
TIA - brent&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Ed Jobe" &lt;EDLJOBE&gt; wrote in message&lt;BR /&gt;
news:B9C393F71E65EB34B9EBA0D514166796@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; When in vbaide, Help&amp;gt;Contents&amp;gt;Microsoft Forms Reference&amp;gt;Microsoft Forms&lt;BR /&gt;
&amp;gt; Object Model Reference&amp;gt;Methods&amp;gt;Add&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; Ed&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Brent" &lt;MYMAILNOW&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:11F4513B381B384F362DA1404A3C7E7A@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; Thanks Ed - that finally worked.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; I came across the "MSForms.Textbox.1" by scouring through so much stuff.&lt;BR /&gt;
&amp;gt; In&lt;BR /&gt;
&amp;gt; &amp;gt; the future, where can I find what is the correct syntax to use in&lt;BR /&gt;
&amp;gt; situations&lt;BR /&gt;
&amp;gt; &amp;gt; like this?&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; "Ed Jobe" &lt;EDLJOBE&gt; wrote in message&lt;BR /&gt;
&amp;gt; &amp;gt; news:78C2E5ED736460F2143D198FA7577985@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Try "Forms.TextBox.1".&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; &amp;gt; Ed&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; &amp;gt; "Brent" &lt;MYMAILNOW&gt; wrote in message&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; news:7C232D0585DD906B6AEE2530505A867A@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; I keep getting the error "Invalid Class String" when I try to create&lt;BR /&gt;
a&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; control.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Dim myCtrl as Control&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Set myCtrl = pgDwgX.Controls.Add("MSFORMS.textbox.1",&lt;BR /&gt;
&amp;gt; "mytextbox",true)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; "Ed Jobe" &lt;EDLJOBE&gt; wrote in message&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; news:804F92752C0E2A068CE68ED8EB79E239@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; You would do it the same way that you are adding tab pages, except&lt;BR /&gt;
&amp;gt; &amp;gt; that&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; you&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; add the new controls to the page's Controls collection.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; Ed&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; "Brent" &lt;MYMAILNOW&gt; wrote in message&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; news:126E3CC01C0F3E04CF9518FD10EAAA2C@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; I'm using acad 2002 and I'm trying to add some controls&lt;BR /&gt;
&amp;gt; dynamically.&lt;BR /&gt;
&amp;gt; &amp;gt; I&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; have&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; a form that has a multipage control on it. This control has&lt;BR /&gt;
pages&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; added&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; to&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; it dynamically based on the number of drawings that are open.&lt;BR /&gt;
&amp;gt; (this&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; part&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; I've got working). Where I'm having my problem is creating&lt;BR /&gt;
&amp;gt; controls&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; that&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; are&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; needed on this new page. I'm trying to create another multipage&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; control&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; on&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; the new page which will have two pages with a  listview control&lt;BR /&gt;
on&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; each&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; of&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; the subpages.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; If I could see an example of how any type of control is added&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; dynamically,&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; it would give me enough to figure it out.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; TIA&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; Brent&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&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;/MYMAILNOW&gt;&lt;/EDLJOBE&gt;&lt;/MYMAILNOW&gt;&lt;/EDLJOBE&gt;&lt;/MYMAILNOW&gt;&lt;/EDLJOBE&gt;</description>
      <pubDate>Mon, 10 Mar 2003 16:44:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/adding-controls-dynamically/m-p/303381#M65183</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-03-10T16:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: adding controls dynamically</title>
      <link>https://forums.autodesk.com/t5/vba-forum/adding-controls-dynamically/m-p/303382#M65184</link>
      <description>Another approach might be to create the form with as many multipage tabs as&lt;BR /&gt;
you think you'll need, with the controls, then at runtime set the "visible"&lt;BR /&gt;
property to false for the pages you don't need.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Brent" &lt;MYMAILNOW&gt; wrote in message&lt;BR /&gt;
news:126E3CC01C0F3E04CF9518FD10EAAA2C@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; I'm using acad 2002 and I'm trying to add some controls dynamically. I&lt;BR /&gt;
have&lt;BR /&gt;
&amp;gt; a form that has a multipage control on it. This control has pages added to&lt;BR /&gt;
&amp;gt; it dynamically based on the number of drawings that are open. (this part&lt;BR /&gt;
&amp;gt; I've got working). Where I'm having my problem is creating controls that&lt;BR /&gt;
are&lt;BR /&gt;
&amp;gt; needed on this new page. I'm trying to create another multipage control on&lt;BR /&gt;
&amp;gt; the new page which will have two pages with a  listview control on each of&lt;BR /&gt;
&amp;gt; the subpages.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; If I could see an example of how any type of control is added dynamically,&lt;BR /&gt;
&amp;gt; it would give me enough to figure it out.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; TIA&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Brent&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/MYMAILNOW&gt;</description>
      <pubDate>Tue, 11 Mar 2003 07:17:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/adding-controls-dynamically/m-p/303382#M65184</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-03-11T07:17:51Z</dc:date>
    </item>
  </channel>
</rss>

