Capture Form Code

Discussion in 'AutoCAD' started by Paul Richardson, Sep 2, 2004.

  1. Sorry...Sure it's simple..How can I create a from and then capture the
    code which will produce it?

    TFYT
    Paul
     
    Paul Richardson, Sep 2, 2004
    #1
  2. Paul Richardson

    Ed Jobe Guest

    Not in vba. In .Net, its automatic.
    Create a form and then add controls to the form's Controls collection and
    set their properties. Then you would have to get the IDE object and add code
    to buttons, etc. But why?
     
    Ed Jobe, Sep 2, 2004
    #2
  3. Ed,

    I'm working on a class that creates a tabbed form who's tabs and
    data on each tab depend on number of walls and opening within said wall.

    I figured I would need the code to do such? Or am I off track?

    Thank You,

    Paul
     
    Paul Richardson, Sep 2, 2004
    #3
  4. Paul Richardson

    Ed Jobe Guest

    vb or vba?

    --
    ----
    Ed
    ----
     
    Ed Jobe, Sep 2, 2004
    #4
  5. sorry...Working in vba right now..but will use whichever I need to.
     
    Paul Richardson, Sep 3, 2004
    #5
  6. Paul Richardson

    Ed Jobe Guest

    If you were working with vb, I'd create a control which would include a base
    form. Since you are working from vba, remember that a form's module is a
    special class module bound to the form's resources. You can add properties
    and functions to the form like you would any other class. That way you can
    start out with some controls on the form and you don't have to start from
    scratch. For example, add a tab control and a property to the form for the
    number of tabs. Then in the Load event, check the property to add the
    correct number of pages to the tab control. Think of the form.Load event as
    the class.Initialize event.
     
    Ed Jobe, Sep 3, 2004
    #6
  7. Thanks Ed...Could I borrow your brain for the weekend?/// "Rent a Brain" I
    like it...)
     
    Paul Richardson, Sep 4, 2004
    #7
  8. Paul Richardson

    Ed Jobe Guest

    No way! "Weekends were made for <insert favorite beer>." :)
     
    Ed Jobe, Sep 7, 2004
    #8
  9. You don't need your brain for beer...I would be just helping it out,
    wouldn't tax it much...ha
     
    Paul Richardson, Sep 8, 2004
    #9
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.