form owned by dialog

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?SkI=?=

    form owned by dialog

    I would like to create an owned form that is owned by a modal dialog rather
    than a modeless form. The idea is the following

    Dim dlg as new Mydlg
    with dlg
    .ShowDialog
    .Dispose
    end with

    class mydlg
    Private m_tbx as AsssetSelector

    friend sub mydlg_Load

    m_tbx = New AssetSelector
    with m_tbx
    .owner = Me
    .show
    end with
    end sub

    The form m_tbx is created but doesn't received messages and so is not
    terribly useful.

    Is there some way to get this to work? What I want is a tool form that
    floats above the dlg but is not confined to the interior of the dlg. I use
    this technique in other instances in which the owner is a modeless form but
    don't see how to get it to work if the owner is a modal dlg.

    --
    JB
Working...