Results 1 to 4 of 4

Thread: Simple activex question

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2005
    Posts
    67

    Simple activex question

    Hi all, I am very new to active X, this is my first day at it. I have created 4 controls, called 1.ctl, 2.ctl 3.ctl and 4.ctl. I also have 4 control buttons on a form, and when I click 1.cmd I want the form to display 1.ctl and so on.

    How can I achieve this.

    Many thanks

  2. #2
    New Member
    Join Date
    Apr 2005
    Posts
    5

    Re: Simple activex question

    Hi

    just quick answer no time to explain. Use panels (with controls on) then on button click hide or show panels appropriately. Only problem with this is will remain in memory etc. so might be better to destroy object then re-create it...

    Chow

  3. #3
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: Simple activex question

    You might try Controls.Add
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  4. #4
    Old Member moeur's Avatar
    Join Date
    Nov 2004
    Location
    Wait'n for Free Stuff
    Posts
    2,712

    Re: Simple activex question

    Put all 4 controls on your form where you want them to show up, but set the visible properties to false.

    When the command button is clicked,
    Control1.Visible = True

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width