的MdiParent代码:
Private Sub mdiparent_Load(
mdichild.Show()
mdichild代码:
Private Sub mdichild_Load()
Me.MdiParent = Project1.mdiparent
mdichild.Designer.vb代码:
Me.Controls.Add(Me.compont1)
CType(Me.compont1, System.ComponentModel.ISupportInitialize).EndInit()
a)错误仅适用于mdichild,
如果我在mdichild_Shown()
行中发表评论,则会触发Me.MdiParent = Project1.mdiparent
事件
b)中也mdichild_Shown()
,如果我移动线Me.Controls.Add(Me.compont1)
之后ISupportInitialize).EndInit()
线事件将闪光。 (但Me.Controls.Add(Me.compont1)
线将被自动如果任何设计变更完成向上移动。)
除了使用上述解决方案之外,我该如何解决此问题?