•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C# section within the Software Development category of DaniWeb, a massive community of 456,234 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,745 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C# advertiser: Programming Forums
Views: 2382 | Replies: 1
![]() |
•
•
Join Date: Nov 2006
Location: Bonners Ferry, ID
Posts: 280
Reputation:
Rep Power: 3
Solved Threads: 39
If you are referring to placing another form into a Panel on the Main form, this should really be done using a UserControl. However,
You can put a form into another control (such as a panel) on a TopLevel form like your main form by using the code above. You should typically set the second form's control box off, and set the Text of the second form to empty, also set the border to none.. But that is just you choice.
//Jerry
Form2 fm2 = new Form2();
fm2.TopLevel = false;
fm2.Dock = DockStyle.Fill;
panel1.Controls.Add(fm2);
fm2.Show();You can put a form into another control (such as a panel) on a TopLevel form like your main form by using the code above. You should typically set the second form's control box off, and set the Text of the second form to empty, also set the border to none.. But that is just you choice.
//Jerry
![]() |
•
•
•
•
•
•
•
•
DaniWeb C# Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- What is the difference between simple form & MDI form? (Visual Basic 4 / 5 / 6)
- Trayicon problem (Pascal and Delphi)
- Switch focus to new form (VB.NET)
- By Pressing F3 on MDI Form(Parent) How can a sub menu Form will open (Visual Basic 4 / 5 / 6)
- vb.net database connection (VB.NET)
- Encrypt File using User Supplied Password (VB.NET)
- Quick VB2005 help....how do I get this basic app started? (VB.NET)
- form validation not working (JavaScript / DHTML / AJAX)
- Using SelectedIndexChanged to change another column on the datagrid (C#)
Other Threads in the C# Forum
- Previous Thread: site view disappears
- Next Thread: how to retrieve data and display in textbox in c#


Linear Mode