<script type="text/javascript">
</script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
窗体放在Panel上???
如何将窗体放在Panel上?
下面的代码出错!
Dim form2 As New Form2
form2.TopMost = False
form2.FormBorderStyle = FormBorderStyle.None
form2.Parent = Me.Panel1
form2.Show()
__________________________________________________________________________
form2 是顶级窗口(Top-Level),不能设置它的 parent 属性
__________________________________________________________________________
Dim form2 As New Form2
form2.TopLevel = False form2.FormBorderStyle = FormBorderStyle.None两者选其一.
from2.Show() from2.Visible=true 两者选其一
Me.Panel1.Controls.Add(form2)
__________________________________________________________________________
呵呵...平民百姓好主意.学习.
__________________________________________________________________________
新建一个类,继承form2,在这个类的构造函数里,设置me.TopLevel = False
其它正常。
就是说 TopLevel= False 要在 new 里才行。
__________________________________________________________________________
更简单一点,直接在form2的new里加入me.TopLevel= False
__________________________________________________________________________
窗体放在Panel上???
如何将窗体放在Panel上?
下面的代码出错!
Dim form2 As New Form2
form2.TopMost = False
form2.FormBorderStyle = FormBorderStyle.None
form2.Parent = Me.Panel1
form2.Show()
__________________________________________________________________________
form2 是顶级窗口(Top-Level),不能设置它的 parent 属性
__________________________________________________________________________
Dim form2 As New Form2
form2.TopLevel = False form2.FormBorderStyle = FormBorderStyle.None两者选其一.
from2.Show() from2.Visible=true 两者选其一
Me.Panel1.Controls.Add(form2)
__________________________________________________________________________
呵呵...平民百姓好主意.学习.
__________________________________________________________________________
新建一个类,继承form2,在这个类的构造函数里,设置me.TopLevel = False
其它正常。
就是说 TopLevel= False 要在 new 里才行。
__________________________________________________________________________
更简单一点,直接在form2的new里加入me.TopLevel= False
__________________________________________________________________________