本文介绍了C# - 在Panel中形成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是C#的新手,我想知道如何在面板中放置一个Form。

Google帮助理解了它的概念,但我似乎无法理解能够把它拉下来。



如果有人能帮助我,我会非常感激。



谢谢!

I'm kinda new into C# and would like to know how I can place a Form inside a Panel.
Google helped understand a bit the concept of it, but I can't seem to be able to pull it off yet.

If anyone could help me, i'll be very thankful.

Thank you !

推荐答案

myForm.FormBorderStyle = FormBorderStyle.None;


Form1 myForm = new Form1();
myForm.TopLevel = false;
myForm.AutoScroll = true;
frmMain.Panel2.Controls.Add(myForm);
myForm.Show();



这篇关于C# - 在Panel中形成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-12 10:06