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
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.