Click to See Complete Forum and Search --> : Is this Active X? Custom Control? Suggestions?


Blair Mahaffy
May 4th, 1999, 09:07 AM
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.

May 7th, 1999, 04:34 AM
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

Blair Mahaffy
May 7th, 1999, 09:17 AM
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!