Wondering how i can get or set the carrot position in UltraTextbox. In ms .net controls you can use the myTextBox.Select(5,5) to select the fift position in a text/set the carrot to the fift position.
Is this posible with infragistic controls?
By the way, is it possible with the ultradate control??
This might be a timing issue, in which case you can get around it using a BeginInvoke. I posted some sample code for this here.
I was not able to reproduce the behavior you describe here with a simple test using the latest version of the control; I handled the Enter event, and set SelectionStart and SelectionLength both to zero, and the caret appeared before the first character as expected. I tried other values as well, and each functioned as expected. It is possible that there is a bug in the version you are using, in which case you need to download the latest.
Thanx for the answer, but i have tried those two properties... they dont seem to do the job.
I can fill you in with the my current problem.
In one of the cases where i need it work is with the UltraDateTimeEditor. The format/mask i am using on this control is dd.mm.yyyy. When i enter this control i want the carrot to possition somewhere between on "dd". Then i can use the up/down keys to move up and down in dates (days).But when i enter the control the carrot is at the end of "yyyy" and when the up/down keys are used they up and down in years.
I have hooked up on the "Enter" event. I have debugged the code and i know the event is fired on enter.
My code:
private
Yes; see SelectionStart and SelectionLength properties.