如何通过代码判断某个TabPage为当前选择的页面? Post By:2012/3/12 1:14:00 [显示全部帖子]
Dim tc As WinForm.Control = Forms("窗口").Controls("TabControl1") Dim pg1 As WinForm.TabPage = Forms("窗口").Controls("TabControl").TabPages("TabPage1") Dim pg2 As WinForm.TabPage = Forms("窗口").Controls("TabControl2").TabPages("TabPage2") Dim pg3 As WinForm.TabPage = Forms("窗口").Controls("TabControl2").TabPages("TabPage3")