Customizing the colors doesn't work properly

Hello,

I'm trying to customize the color but it doesn't work.

I started a new project in VS2019 and tried all combinations of your documentation but it's not working.

I just want it flat with a black background (buttons also black) and a white border. Could you try it?

Up button's top border also only appears at a specific font height.


Regards


5 Replies 1 reply marked as answer

BR Bharathi Rajakantham Syncfusion Team June 28, 2021 10:50 AM UTC

Hi Youki, 
 
Thanks for contacting Syncfusion Support. 
 
We have checked the reported query with the NumeriicUpdownExt from our end. You can achieve your requirement by applying the VisualStyle of the control to Office2016Black and also you can use BackColor and the BorderColor property for customization. Please check the sample for your reference. 
 
Code Snippet: 
 
            this.numericUpDownExt1.VisualStyle = Syncfusion.Windows.Forms.VisualStyle.Office2016Black; 
            this.numericUpDownExt1.BackColor = System.Drawing.Color.Black; 
            this.numericUpDownExt1.Border3DStyle = System.Windows.Forms.Border3DStyle.Etched; 
            this.numericUpDownExt1.BorderColor = System.Drawing.Color.Yellow; 
            this.numericUpDownExt1.BorderSides = System.Windows.Forms.Border3DSide.All; 
            this.numericUpDownExt1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; 
 
 
 
 
Output: 
 
 
Please ensure our sample and if we misunderstood your requirement, please share us more details on it if possible, please share the issue reproducing project file and the video for the same. 
 
Regards, 
Bharathi R 



YO Youki July 31, 2021 05:36 PM UTC

Hello,

But this line does nothing.

this.numericUpDownExt1.BackColor = System.Drawing.Color.Black;

Now i'm using your combobox and it looks like this:



Bordercolor: 94, 94, 94

Backcolor: 40, 40, 40


Is it even possible to customize the numericUpDown?

NumericUpDown like the ComboBox above:

- Backcolor and buttons (40, 40, 40)

- Bordercolor and buttons bordercolor (94, 94, 94)

- No further colors changing, maybe only the buttons hover color a little bit brighter


Tried the domainUpDown but it changes the backcolor by using the buttons.

this.domainUpDownExt1.ColorScheme = Syncfusion.Windows.Forms.Office2007Theme.Managed;
Office2007Colors.ApplyManagedColors(this,Color.Orange);


Regards



SN Sudharsan Narayanan Syncfusion Team August 2, 2021 03:15 PM UTC

Hi Young,

Thanks for the update.

We have checked the reported query that “Customizing color not working in NumericUpDown” from our end. We have prepared the sample to achieve the requirement. Please check the sample from the below location.

Sample: https://www.syncfusion.com/downloads/support/forum/166732/ze/NumericUpdownExt-1719515335

And currently we don’t have support to customize the button back color and border color in NumericUpDownExt. So please try with above sample and
let us know if you need any further assistance on this. We will be glad to assist you.

Regards,
Sudharsan
 



YO Youki August 5, 2021 07:44 PM UTC

Ok, Thanks.

I think it's a good solution for me to use comboboxes for this.

Regards


Marked as answer

SN Sudharsan Narayanan Syncfusion Team August 6, 2021 06:57 AM UTC

Hi Yougi,

Thanks for the update,

We are glad to know that the reported problem has been resolved at your end. Please let us know if you have any further queries on this. We are happy to help you
😊.

Regards,
 
Sudharsan 


Loader.
Up arrow icon