1. 关闭TabControl选项卡:

  Private Sub TabControl_Main_CloseButtonClick(sender As Object, e As EventArgs) Handles TabControl_Main.CloseButtonClick

  Dim TpA As DevExpress.XtraTab.ViewInfo.ClosePageButtonEventArgs = e
    For Each P1 As DevExpress.XtraTab.XtraTabPage In TabControl_Main.TabPages
      If P1.Text = TpA.Page.Text Then
        TabControl_Main.TabPages.Remove(P1)
        P1.Dispose()
        Exit Sub
      End If
    Next
  End Sub

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。  
扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄