Hi
I have an UltraDateTimeEditor after I click the tab key and the UltraDateTimeEditor gets the focus, I wish I could see the cursor on the control. But it is not visible. If I press an arrow key the cursor appears.
Also if the UltraDateTimeEditor gets the focus with a mouseclick, I can see the cursor fine.
The problem is using the tab key.
Thanks for your help
Hello,
I tried this and it always works fine for me so I attached my sample to this post for you. Please review it and feel free to let me know if I misunderstood you(you could attach a sample of your own which reproduces the issue) or if you have any other questions.
I am checking about the progress of this issue. Please let me know If you need any further assistance on this.
Hello sorry for my delay. I was working on a bug that is driving me crazy ..
I tried to run your project but i cuoldnt., I do replaced Infragistics references but I couldnt build the solution
It does not found the Infragistics namespace, I also tried setting copy local true and copying the dlls to the bin folder but didnt work.
I have this UltraDateTimeEditor nested in other usercontrol that is also nested in another one.
I will see if I can post some code
Thank You very much for your help. I leave this issue in standby because I had other priorities, but you solved my problems.
I used this:
private void ultraDateTimeEditor1_AfterEnterEditMode(object sender, EventArgs e)
{
// Whole text will be selected
ultraDateTimeEditor1.Editor.SelectAll();
}
THANKS A LOT, TO ALL OF YOU!!
Hi,
If you want you could check what is the default behavior of Microsoft controls. I made a tests with Microsoft`s controls DateTimePicker and NumericUpDown and these controls has the same behavior like Infragistics controls. If you want to achieve desired behavior you could try to implement my suggestion from previous post,
Let me know if you have any questions
By the way, I validated my statements running thru MS Office options in Outlook and Word. Regardless of the user manually editing a value, tabbing thru and returning to that field is results in all of the text being selected.
I do not agree that this should be by design behavior. If you look at MS apps, the behavior when tabbing around thru options, etc. is to always select all when entering. Since MS is the developer and basic keeper of Windows Forms apps, I would say that is then what the standard behavior should be. As such Infragistics should have that behavior in it's tools as the default and anything else should have to have special code. Basically, I should not have to code your first example. I should only have to use your second example if I do not want the Windows Forms standard behavior. My opinion this is a bug with Infragistics tools and needs to be addressed.
Hello Btesch,
Thanks for attached sample and video file. I`d like to inform you that mentined behavior is expected and by design. The same behavior you could find in all other Infragistic`s controls (for example: UltraTextEditor, UltraNumericEditor and so on).
It is not clear for me what is your final goal, but is you want to keep all text selected, nevertheless how you choose / write the date (see screnshot 1), then you could used the code below:
If you want to have a cursor at the last character, without any selected text (see screnshot 2), then you could used the code below:
//by this way the cursor will be the last character
ultraDateTimeEditor1.Editor.SelectionStart = 10;