Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
225
UltraTabControl , cannot invoke procedure call in the click event
posted

When clicked the tab with calption  "Loss cash inflow". It does not invoke the GetLossCashInflow(). Any ideawhy ?

 Private Sub UltraTabControl1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles UltraTabControl1.Click
        Select Case UltraTabControl1.ActiveTab.Text
            Case "Loss cash inflow"
                MsgBox("hello")
                GetLossCashInflow()
        End Select
    End Sub

  • 45049
    posted

    This might depend on timing.  Does your method get called when your "Loss cash inflow" tab is active, and when you then perform another click on the WinTabControl (such as on a different tab)?

    If this is the case, you might want to use a different event.  I assume that you'll want to perform this calculation as your "Loss cash inflow" tab becomes active, before it is displayed.  If that's the case, consider the ActiveTabChanged event instead.  In this event handler, "e.Tab" is the tab that was just made active.