Tammy,
You will have to use the SetWindow API which is declared using C#
like this
public class Win32
{
private Win32()
{
}
[DllImport("user32.dll", SetLastError=true)]
public static extern IntPtr SetParent(
IntPtr childWindow, IntPtr newParent);
}
You would then use it like this (from inside a form) if you forexamples
wanted to open a form called ChildForm
ChildForm c = new ChildForm();
Win32.SetParent(c.Handle, this.Handle);
c.Show();
HTH,
//Andreas
"Tammy" <td***@thewavz.com> skrev i meddelandet
news:er**************@TK2MSFTNGP12.phx.gbl...
I was posting this question for a student.
The student is not asking how to load a from from another form. But, how
to load a form "inside" of another form. Not using MIDI. (The parent form
becomes the child form frame.)
"Tammy" <td***@thewavz.com> wrote in message
news:Od**************@TK2MSFTNGP09.phx.gbl... How do I launch a form from within another?
The book I have only talks about MDI forms and I know that there should
be a way to do that
without the MDI form.