|
-
Mar 12th, 2002, 11:32 PM
#1
Thread Starter
New Member
Building a control that is actually a pop-up form
Hi. I built a form and several classes that are used by the code in the form. A bunch of properties can be set for the form and then the form can be displayed modally.
I want to wrap all this functionality into an OCX, so I can place the control on any other form, and have the control not be visible, then pop it up with a method call when I want it (similar to how the common dialog control works).
So how do I create a control that IS a form, that can be placed on another form?
Thanks everyone for your help.
Kevin
-
Mar 14th, 2002, 05:26 AM
#2
New Member
Hey,
Just design your control as normal and you will see a property on the UserControl object called 'InvisibleAtRuntime'. Set that to true.
Then, you need a method on your usercontrol that loads the form you want to load.
OK?
-
Mar 15th, 2002, 11:08 AM
#3
Thread Starter
New Member
Just what I needed!!! Thanks, Fried Egg.
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
|