Hello,
Is it possible to change the color of the selected text in MaskedTextBox? If you check the attached photo it shows a blue color that doesn't fit with our app's look and feel.
Kind Regards.
Fernando.
4 Answers, 1 is accepted
0
Hello, Fernando,
I would like to note that RadMaskedEditBox hosts the standard MS TextBox. It doesn't suport changing the selection color. Additional information is available in the following MSDN thread: https://social.msdn.microsoft.com/Forums/vstudio/en-US/51733d80-46cc-4390-9130-f2964f240eb1/how-to-change-highlighting-color-of-textbox-control?forum=wpf
I can suggest you using RadTextBoxCotrol which allows changing the SelectionColor property value to a custom color. However, in this case it would be necessary to validate the user's input.
I hope this information helps. If you have any additional questions, please let me know.
Regards,
Dess
Progress Telerik
I would like to note that RadMaskedEditBox hosts the standard MS TextBox. It doesn't suport changing the selection color. Additional information is available in the following MSDN thread: https://social.msdn.microsoft.com/Forums/vstudio/en-US/51733d80-46cc-4390-9130-f2964f240eb1/how-to-change-highlighting-color-of-textbox-control?forum=wpf
I can suggest you using RadTextBoxCotrol which allows changing the SelectionColor property value to a custom color. However, in this case it would be necessary to validate the user's input.
I hope this information helps. If you have any additional questions, please let me know.
Regards,
Dess
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which
deliver the business app essential building blocks - a grid component,
data visualization (charts) and form elements.
0
Fernando
Top achievements
Rank 1
answered on 22 Mar 2018, 08:15 PM
Hi Dess, I've changed to RadTextBoxControl, how can I change RadTextBoxControl 's selected text color?
0
Accepted
Hello, Fernando,
In order to change the desired color it is necessary to simply set the RadTextBoxControl.SelectionColor property:
I hope this information helps. If you have any additional questions, please let me know.
Regards,
Dess
Progress Telerik
In order to change the desired color it is necessary to simply set the RadTextBoxControl.SelectionColor property:
this
.radTextBoxControl1.SelectionColor = Color.Lime;
I hope this information helps. If you have any additional questions, please let me know.
Regards,
Dess
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which
deliver the business app essential building blocks - a grid component,
data visualization (charts) and form elements.
0
Fernando
Top achievements
Rank 1
answered on 23 Mar 2018, 01:36 PM
Hi Dess,
That did the trick, thanks for your help.