This is a migrated thread and some comments may be shown as answers.

Change selected text color in MaskedEdit

4 Answers 456 Views
MaskedEditBox
This is a migrated thread and some comments may be shown as answers.
Fernando
Top achievements
Rank 1
Fernando asked on 20 Mar 2018, 01:26 PM

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

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 21 Mar 2018, 02:11 PM
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
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
Dess | Tech Support Engineer, Principal
Telerik team
answered on 23 Mar 2018, 06:13 AM
Hello, Fernando, 

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.

Tags
MaskedEditBox
Asked by
Fernando
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Fernando
Top achievements
Rank 1
Share this question
or