开发者

VB.Net Clear or Reset form BackColor?

开发者 https://www.devze.com 2023-01-20 13:47 出处:网络
How do I clear/reset the BackColor of a windows application form? For instance, I have a set of radio buttons, each one changes the color of the background form color, when I reset the radio buttons I

How do I clear/reset the BackColor of a windows application form? For instance, I have a set of radio buttons, each one changes the color of the background form color, when I reset the radio buttons I would als开发者_开发百科o like to reset the color of the form back to it's original state?


Simple way :

myForm.BackColor = Color.Empty


Just set to it Colors.DefaultBackColor.

0

精彩评论

暂无评论...
验证码 换一张
取 消