Editing MSFlexgrid with TextBox, Problem with Keeping Focus on TextBox
Posted on 2006-06-29
I have a frame with 2 combo boxes, 3 label, 1 command button, 1 MSFlexgrid and 1 textbox.
When a selection is made in both combo boxes, the MSFlexgrid is populated and appears. The textbox is used to edit the non-fixed cells on the MSFlexgrid. It seems to work OK at first, but when I click on another cell, the floating textbox won't keep the focus. It reverts to the first combo box. If I use the arrow keys to move to another cell, it keeps the focus.
textbox.TabStop = True (all other controls it's False)
In the MSFlexGrid_EnterCell Event I have the following code that is supposed to secure the focus on the textbox, it runs, but doesn't seem to do it's job all the time.
textbox.Visible = True
How can I keep the focus on the textbox when clicked on?