Hi Everyone
I am using a number of TextEditor in my project and the text editors are filled with some values at the time of Initialization.
The problem is the datas are filled up perfectly in the text editor but when i make the focus on the Text Editor by hitting TAB the focus moves from one texteditor to another text editor but the cursor position is maintained at the last making the text editor look like that there is no value in that control. We can be able to see the value only when we hit HOME then the cursor moves to the first position.
Is there any another way to make the focus on the control and also to maitain the cursor position in the first.
Please help me to solve this issue
Ferdin
Ferdin,
Is it also selecting the text by default when you tab into it? You could try setting the SelectionLength property to control this:
private void ultraTextEditor1_AfterEnterEditMode(object sender, EventArgs e){ UltraTextEditor textEditor = (UltraTextEditor)sender; textEditor.SelectionLength = 0;}
There is also a SelectionStart property that controls where the cursor should be, so you could also experiment with that.
-Matt
Matt
Thanks for your response sorry i made a mistake yesterday while posting its not UltraTextEditor instead it is UltraMaskedEditor.
This is where i have problem which i posted yesterday. Do you have any sugesstion for me on this issue Matt
Did you actually report this issue? Did you test the latest hotfix too? I recall some issues related to the UltraMaskedEdit scrolling the left portion of its text out of view in some cases, so it's possible it was fixed.
Thanks for your reponse. Atlast i found a way for this issue. I said that i am using a UltraMaskedTextEditor. If we specify the some input mask then it performs well. When using UltraMaskedTextEditor without specifying input mask it has the bug which i reported.
I would think that my suggestion would still apply. If this doesn't fix it, I do recall there being some bugs fairly recently that sound related to this, so you should download the latest hotfix; otherwise, I would contact Developer Support.