Hi there,
Here is my code
Private Sub UltraCombo_Tracks_Results_1_AfterCloseUp(ByVal sender As Object, ByVal e As System.EventArgs) Handles UltraCombo_Tracks_Results_1.AfterCloseUp
Me.UltraCombo_Tracks_Results_1.Text = "Track Selected" + " - " + Me.UltraCombo_Tracks_Results_1.Text
Me.UltraGrid_Results_1.Focus()
End Sub
Point is, the last line does nothing!
I'm surprised since a similar code on a Tool really switches the focus.
Any ideas is appreciated.
Thanks in advance!
I'm guessing here, but it's possible that the underlying .NET TextBox in the combo is taking focus in this code, so this boils down to a timing issue. You could use a BeginInvoke to delay the call to focus the grid to see if that helps.
-Matt
Matt,
I guess the problem is somewhere else, since I changed to focus a simple TextBox (not the UG) and nothing happens.
As I said before, it's weird since from other controls like an UltraToolManager tool, no problem!
Thanks in advance for any help.