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

 

相关文章:

  • 2022-12-23
  • 2021-12-30
  • 2022-12-23
  • 2022-12-23
  • 2021-05-26
  • 2022-12-23
  • 2021-06-08
  • 2022-12-23
猜你喜欢
  • 2021-08-03
  • 2022-02-24
  • 2021-11-09
  • 2021-10-16
  • 2021-09-26
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案