I have a winform with a toolstriptextbox where users can write some stuff. The problem is that the textbox does not release the focus using the following code:
this.ActiveControl = otherControl;
OR
otherControl.Focus();
It is very strange because I can still see the text cursor blinking in the toolstriptextbox (if I press some other key it will appear in it).
Does any one know how to remove the cursor of toolstriptextbox?
PD. The toolstriptextbox is the only textbox inside the form.
Regarding to the comments...
In fact there are not several controls in the form. Some buttons in the toolstrip, a splitterPanel and a couple of picture boxes. I tried to focus the picture boxes and the toolstrip but sometimes the form loses its handlers of events and the only way to solve this is to open or to focus any other app and go back(this restores the handlers). So far the only way to avoid that is to focus the splitterPanel. I do understand that theoretically the splitterPanel is not focusable, but that is the only workaround I have found.
Finaly when the splitterPanel is focused the initial behaviour occurs.
Thanks for your comments.