CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 1999
    Location
    Manitoba, Canada
    Posts
    82

    Is this Active X? Custom Control? Suggestions?

    I use a search process in many places throughout my application that uses an edit, a list box, and a check box.

    What's the best way to group these three controls together so they can be created and accessed consistently from many different places? The three controls are always within dialogs but are never the only controls on the dialog.

    Can you put a dialog within a dialog so the search controls can reside in a DLL? Or should I be exploring ActiveX?

    Thanks in advance.



  2. #2
    Guest

    Re: Is this Active X? Custom Control? Suggestions?

    I used for this problem an ActiveX Control. A Sample Code to create an ActiveX
    with Child Controls is in my Question about Active X an Tabbing.
    But I have Problems with the Tabbing in the Dialog.

    If you want to use a Dialog in a Dialog this works. You must Create the Client Dialog in an Formview an Place this in the Dialog dynamicly.

    I hope it Helps


  3. #3
    Join Date
    Apr 1999
    Location
    Manitoba, Canada
    Posts
    82

    Re: Is this Active X? Custom Control? Suggestions?

    Thanks for your help.

    Actually I ended up using a Dialog in a Dialog but I didn't use a formview. Just created the child dialog in the OnInitDialog of the parent Dialog. I put a Static on the parent Dialog as a "placeholder" for the child and, in the OnInit for the child just moved it to the co-ordinates of the static.

    Tabbing order is a bit of a trick though. It really does have to be the last control on the page doesn't it?

    Thanks again!


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

Featured