I'm trying to display a form inside another form. It's more or less the same as using an MDIForm, but I'd like not to use one because of the lousy positioning of the child forms.
With the SetParent API I can easily let one form host another, but the problem is that when the hosted form has the focus, the hosting form's title bar is gray. This is bad for the consistency of the interface. Does anyone know how to make the hosting form remain its focus?
Check out the attached example, it's a very simple illustration.
You can, but it's complicated and messy.
Why bother?
What do you mean "the positioning"?
You can write a tiny bit of code that would position a child form automatically when it's loaded.
Thanks Woka, I'll check it out. Actually you're right, an MDIForm is easier. But because I started the project using a normal form I more or less forgot about the ability of using an MDIForm. My original idea is in fact overly complicated.