在VB.NET中,form1为父窗体,form3为子窗体,在父窗体中添加一菜单,用菜单打开子窗体,代码如下
PrivateSub打开子窗体ToolStripMenuItem_Click(senderAsObject,eAsEventArgs)Handles打开子窗体.Click...
Private Sub 打开子窗体ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 打开子窗体.Click
Dim form3 As New Form3
form3.MdiParent = Me
form3.Show()
form3.Width = 200
form3.Height = 100
MsgBox(form3.Height)
End Sub
但运行时,子窗体总是最大化,未按宽高200、100显示,不知何故。请问问题出在哪里,请指导 展开
Dim form3 As New Form3
form3.MdiParent = Me
form3.Show()
form3.Width = 200
form3.Height = 100
MsgBox(form3.Height)
End Sub
但运行时,子窗体总是最大化,未按宽高200、100显示,不知何故。请问问题出在哪里,请指导 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询