Button BackColor

15 views
Skip to first unread message

Shuki Birshan

unread,
Jul 21, 2026, 6:06:19 AM (3 days ago) Jul 21
to Migrated By Firefly
Hi, 

Currently, when we want to use a button's back-color,  we need to use the bindbackcolor event of the button.

in my understanding, this is the behavior of the migrated code.
is there a way around it ? 
All I want is to add a button with a backcolor, but don't want to use the event for it.

Thanks,

Shuki

Shuki Birshan

unread,
Jul 22, 2026, 7:21:25 AM (2 days ago) Jul 22
to Migrated By Firefly
anyone ?


ב-יום שלישי, 21 ביולי 2026 בשעה 13:06:19 UTC+3, Shuki Birshan כתב/ה:

VKF Developer

unread,
Jul 22, 2026, 7:51:36 AM (2 days ago) Jul 22
to Migrated By Firefly
You can use the BackColor property.

e.g.
     yourButton.BackColor = System.Drawing.SystemColors.ControlDarkDark;

Shuki Birshan

unread,
Jul 22, 2026, 8:24:05 AM (2 days ago) Jul 22
to Migrated By Firefly
Thanks for your answer.

but this doesn't work. 
when setting the property of back color, it shows as expected in the designer
but in runtime, the back color is the default one.

so I must use the bind event just for that reason.


ב-יום רביעי, 22 ביולי 2026 בשעה 14:51:36 UTC+3, VKF Developer כתב/ה:
Reply all
Reply to author
Forward
0 new messages