|
-
Apr 19th, 2005, 05:58 AM
#1
Thread Starter
Lively Member
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
-
Apr 19th, 2005, 11:12 AM
#2
New Member
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
-
Apr 20th, 2005, 12:14 AM
#3
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.
-
Apr 20th, 2005, 05:22 PM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|