FORM within a FORM

  • Thread starter Thread starter Marauderz
  • Start date Start date
M

Marauderz

I can't remember where I saw this sample already, and I can't seem to get a
hit with google on it.

Basically it's a sample that shows a form within a form, but NOT with an
MDIContainer!

Does anyone know which sample I'm talking about? Next time I'm gonna
immediately bookmark all interesting articles!

Thanks!
Marauderz
 
Dumb suggestion: try adding a form instance to the parent form's Controls
collection.
 
* "Marauderz said:
I can't remember where I saw this sample already, and I can't seem to get a
hit with google on it.

Basically it's a sample that shows a form within a form, but NOT with an
MDIContainer!

Does anyone know which sample I'm talking about? Next time I'm gonna
immediately bookmark all interesting articles!

Quick and dirty (not recommended):

\\\
Dim f As New Form2()
f.TopLevel = False
Me.Panel1.Controls.Add(f)
f.Show()
///
 
Herfried's suggestion is just brushed-up version of mine :-P. But still,
this brushing up is cruicial - for example, it wouldn't work without setting
the TopMost property to false and making the form visible.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

Marauderz said:
Herfried - Thanks
Dmitriy - Tried your suggest before hand already. didn't work =P
 
Back
Top