Page 1 of 1

Open Form In A Form

Posted: Sat Jan 30, 2010 8:47 am
by 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

Re: Open Form In A Form

Posted: Sat Jan 30, 2010 11:33 am
by 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;

Re: Open Form In A Form

Posted: Sat Jan 30, 2010 5:04 pm
by 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.

Re: Open Form In A Form

Posted: Sat Jan 30, 2010 8:43 pm
by Lewis
Virtual operating systems are systems that are on another os but you use them instead i think

Re: Open Form In A Form

Posted: Sat Jan 30, 2010 9:36 pm
by 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;

Re: Open Form In A Form

Posted: Sun Jan 31, 2010 2:12 am
by 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.