VB.Net Clear or Reset BackColor Form?

Hey guys! A simple question, but a simple part of learning. How to clean / reset backcolor form of windows application form? For example, I have a set of switches, each of which changes the color of the background shape, when I reset the radio buttons I would also like to reset the form color to return to its original state?

+3
source share
2 answers

A simple way:

myForm.BackColor = Color.Empty
+6
source

Just set Colors.DefaultBackColor for it .

+3
source

Source: https://habr.com/ru/post/1770222/


All Articles