Start process in panel

If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions 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.
5 posts Page 1 of 1
Contributors
User avatar
muttley1968
Hardcore Programmer
Hardcore Programmer
Posts: 622
Joined: Thu Jun 17, 2010 11:54 pm

Start process in panel
muttley1968
Hi just wondering if anyone knows how to start a program in a panel I don't mean like notepad
I want to start a program that is already in my program if you get me so I want to use a panel as a parent and then my program.show as a child
User avatar
comathi
Coding God
Coding God
Posts: 1242
Joined: Fri Mar 26, 2010 1:59 pm

Re: Start process in panel
comathi
Do you mean you want to display a second Form in your panel? In that case, you could do the following:
Code: Select all
Dim f As New Form2
f.TopLevelControl = False

Panel1.Controls.Add(f)
f.Show()
Pretty sure that's how it goes lol. I'm on mobile right now so I can't confirm.
User avatar
muttley1968
Hardcore Programmer
Hardcore Programmer
Posts: 622
Joined: Thu Jun 17, 2010 11:54 pm

Re: Start process in panel
muttley1968
its telling me property is read only for the
f.toplevelcontrol = false
User avatar
Smiley
VIP - Donator
VIP - Donator
Posts: 269
Joined: Sat Dec 19, 2009 3:39 pm

Re: Start process in panel
Smiley
I think it's just f.toplevel = false
User avatar
muttley1968
Hardcore Programmer
Hardcore Programmer
Posts: 622
Joined: Thu Jun 17, 2010 11:54 pm

Re: Start process in panel
muttley1968
Nah that dont work either
5 posts Page 1 of 1
Return to “Coding Help & Support”