Add a form "into a form"

Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
17 posts Page 1 of 2
User avatar
XTechVB
VIP - Site Partner
VIP - Site Partner
Posts: 727
Joined: Thu May 20, 2010 10:32 am

Add a form "into a form"
XTechVB
This a very simple tutorial even for beginners

many of you think that to add a form "into a form" like in the image bellow is hard IT'S NOT
Image

create a new project
add 1 Button and change it's text to "New Form"

now now go to Project ---> Add Windows Form and add a new form

double click on the button "New Form" and write this small code
Code: Select all
Dim newform As New Form2()
        newform.TopLevel = False
        Me.Controls.Add(newform)
        newform.Show()
now debug it and see that when you click on the button the second form will appear inside the first

a new form will appear each time you click the button

Image


That's it
i hope you like it
You can find me on Facebook or on Skype mihai_92b
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1892
Joined: Wed Dec 16, 2009 9:56 pm

Re: Add a form "into a form"
zachman61
ooh dang dude thank you
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
User avatar
mikethedj4
VIP - Site Partner
VIP - Site Partner
Posts: 2592
Joined: Thu Mar 25, 2010 4:36 am

Re: Add a form "into a form"
mikethedj4
YES YES YES YES!!!!!! I was having a pain trying to figure this out, and you finally helped me out. Thumbs up on this one!!!!!
User avatar
XTechVB
VIP - Site Partner
VIP - Site Partner
Posts: 727
Joined: Thu May 20, 2010 10:32 am

Re: Add a form "into a form"
XTechVB
this would work great on a multiple picture viewer
You can find me on Facebook or on Skype mihai_92b
User avatar
NecroPhis
VIP - Donator
VIP - Donator
Posts: 345
Joined: Sun Aug 08, 2010 1:14 pm

Re: Add a form "into a form"
NecroPhis
thanx MT
very useful for me cooll;
Image
Lewis
Coding God
Coding God
Posts: 1564
Joined: Sun Dec 20, 2009 2:12 pm

Re: Add a form "into a form"
Lewis
Wow that is great :D
Image
User avatar
MrAksel
C# Coder
C# Coder
Posts: 1758
Joined: Fri Mar 26, 2010 12:27 pm

Re: Add a form "into a form"
MrAksel
Hey, thanks for the post. This really helped me!!
LMAOSHMSFOAIDMT
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;


Over 30 projects with source code!
Please give reputation to helpful members!

Image
Image
User avatar
mikethedj4
VIP - Site Partner
VIP - Site Partner
Posts: 2592
Joined: Thu Mar 25, 2010 4:36 am

Re: Add a form "into a form"
mikethedj4
Does anyone know how to do this in C++???
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1892
Joined: Wed Dec 16, 2009 9:56 pm

Re: Add a form "into a form"
zachman61
ask it in C++ section?
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
User avatar
mikethedj4
VIP - Site Partner
VIP - Site Partner
Posts: 2592
Joined: Thu Mar 25, 2010 4:36 am

Re: Add a form "into a form"
mikethedj4
Yeah I forgot about that my bad.
17 posts Page 1 of 2
Return to “Tutorials”