Results 1 to 5 of 5

Thread: SetParent: how to make a child window?

Threaded View

  1. #1

    Thread Starter
    Fanatic Member TheVader's Avatar
    Join Date
    Oct 2002
    Location
    Rotterdam, the Netherlands
    Posts
    871

    Arrow SetParent: how to make a child window?

    Hi folks,

    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.

    Thanks.
    Attached Files Attached Files
    Author for Visual Basic Web Magazine

    My articles on the Web Browser Control:
    Using the Web Browser Control & Using the DHTML Document Object Model

    The examples referenced in the articles can be found here:

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