C
C
Changing the background colour of a Form changed the background colour
of several controls on it, as if they were transparent. I think this
change from VB6 is quite crazy, and I wonder if there are simple ways
around this.
The only thing I can think of is to change the colour of all controls
in a For loop - not a very decent solution, but Microsoft seems to do
a lot of illogical things - user hostile.
Something like
Dim ctrl As Control
For Each ctrl In Form1.Controls
If Type ctrl Is button Then ctrl.BackColor =
Color.FromArgb(128, 255, 92)
If Type ctrl Is label Then ctrl.BackColor =
Color.FromArgb(128, 128, 128)
Next
of several controls on it, as if they were transparent. I think this
change from VB6 is quite crazy, and I wonder if there are simple ways
around this.
The only thing I can think of is to change the colour of all controls
in a For loop - not a very decent solution, but Microsoft seems to do
a lot of illogical things - user hostile.
Something like
Dim ctrl As Control
For Each ctrl In Form1.Controls
If Type ctrl Is button Then ctrl.BackColor =
Color.FromArgb(128, 255, 92)
If Type ctrl Is label Then ctrl.BackColor =
Color.FromArgb(128, 128, 128)
Next