Open Form In A Form

Do you need something made? then ask in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
6 posts Page 1 of 1
Contributors
User avatar
Smiley
VIP - Donator
VIP - Donator
Posts: 269
Joined: Sat Dec 19, 2009 3:39 pm

Open Form In A Form
Smiley
Hello Smiley Again Needing More Help At The Moment Im Working On A Virtual Os And I Would Like To Know How To Open A From Inside A Form Thanks In Advance.

Example:
Image
Last edited by Smiley on Sun Jan 31, 2010 8:59 am, edited 1 time in total.
User avatar
CodenStuff
Site Admin
Site Admin
Posts: 4392
Joined: Tue Aug 04, 2009 1:47 am

Re: Open Form In A Form
CodenStuff
Hello,

Its the same way as adding control at runtime realy and aslong as you have the form in your project like for example if you had a Form2 and you wanted to open it inside your main form this is a code you can use:
Code: Select all
 Dim OpenForm As New Form2
        OpenForm.TopLevel = False 'Because it cant open a toplevel form inside another
        OpenForm.Visible = True
        Me.Controls.Add(OpenForm)
Hope that helps cooll;
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
User avatar
Usman55
VIP - Site Partner
VIP - Site Partner
Posts: 2821
Joined: Thu Dec 24, 2009 7:52 pm

Re: Open Form In A Form
Usman55
Hello Smiley,

I was just wondering that why would you want to make an Operating System? There are many Operating Systems such as Windows XP, Windows Vista and Windows 7! And can I also ask what will be your OS's features? I am feeling excited about your Operating System! But don't you think that Operating Systems are not made in Visual Basic? Visual Basic is made in an Operating System instead!

Thank you.
Image
Lewis
Coding God
Coding God
Posts: 1564
Joined: Sun Dec 20, 2009 2:12 pm

Re: Open Form In A Form
Lewis
Virtual operating systems are systems that are on another os but you use them instead i think
Image
User avatar
CodenStuff
Site Admin
Site Admin
Posts: 4392
Joined: Tue Aug 04, 2009 1:47 am

Re: Open Form In A Form
CodenStuff
Yes like a windows shell so its like taking away the taskbar and folder explorer and using your own interface instead. I will be keeping my eye out for this Smiley cooll;
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
User avatar
Smiley
VIP - Donator
VIP - Donator
Posts: 269
Joined: Sat Dec 19, 2009 3:39 pm

Re: Open Form In A Form
Smiley
Thank You Very Much Code N Stuff Do You Do Computer Programming Professionally Cause You Are Really Good
Oh And How Do You Lock The Topic Please Help.
6 posts Page 1 of 1
Return to “Tutorial Requests”