Adding a form inside a form!

A

Adam Tibi

Hi,
In some cases when building an SDI application, you need to add a form
inside another one. Some developers use UserControl to simulate this, while
UserControls lack certain features when compared to forms.
Is it possible to add a form inside another? Could any one provide a snippet
code?
 
H

Herfried K. Wagner [MVP]

Adam Tibi said:
In some cases when building an SDI application, you need to add a form
inside another one. Some developers use UserControl to simulate this,
while UserControls lack certain features when compared to forms.
Is it possible to add a form inside another? Could any one provide a
snippet code?

\\\
Dim f As New FooForm()
f.TopLevel = False
Me.Controls.Add(f)
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top