0

When I change the color on my button it looses the two tone effect. The closest I can come to understating this is a gradient fill but I'm thinking it must be easier then that? All default buttons have this light/dark fill but when I set the color its flat. I'm not able to find any reference (other then gradient fill) of this on the net.

sean green
  • 53
  • 6
  • Using wpf or winforms? – Suraj S Dec 23 '17 at 02:38
  • @sean green If it is WinForms, look at this question (https://stackoverflow.com/questions/36793877/the-onpaintbackground-method-is-never-invoked-for-control-derived-from-button) and read ALL the comments. – Jimi Dec 23 '17 at 07:44
  • I'll look but I honestly do not know what c# uses. – sean green Dec 26 '17 at 00:36
  • hmm, I know what that link is saying but I don't see how it applies. Also my issues is not that the gradient is not working. I have not tried that yet. The effect I see does not look like a gradient as it only has 2 colors. Maybe that is the answer to my question... I just need to paint a gradient. I woudl figure the default button form the IDE can be reproduced easily. – sean green Dec 26 '17 at 00:47
  • Looks like it is winforms – sean green Dec 26 '17 at 01:00
  • I finally found my issue talked about https://stackoverflow.com/questions/10569200/how-to-reset-to-default-button-backcolor – sean green Dec 26 '17 at 03:04

0 Answers0