Results 1 to 3 of 3

Thread: Building a control that is actually a pop-up form

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2002
    Posts
    8

    Question 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

  2. #2
    New Member Fried Egg's Avatar
    Join Date
    Feb 2001
    Location
    Cornwall, UK
    Posts
    12
    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?

  3. #3

    Thread Starter
    New Member
    Join Date
    Mar 2002
    Posts
    8
    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
  •  



Click Here to Expand Forum to Full Width