#2
qwh9238202023-12-24 13:03
|
用VS写的程序,简单的窗口程序,有主窗口,子窗口,原本子窗口text、DataGridView等控件内容都通过鼠标进行部分选择的,自从子窗口通过tabcontrol显示,子窗口控件都不能鼠标部分选择了。怎么办。MTC是我主窗口的tabcontrol控件
Me.WindowState = FormWindowState.Maximized
Dim ff As New FORM1
ff.TopLevel = False
Dim tp As New TabPage("FORM1")
tp.Controls.Add(ff)
MTC.TabPages.Add(tp)
MTC.SelectedTab = tp
AddHandler ff.FormClosed, Sub() MTC.TabPages.Remove(tp)
AddHandler tp.Disposed, Sub() ff.Close()
ff.Show()
ff.WindowState = FormWindowState.Maximized
ff.AutoScroll = True