G
Guest
In VB6, foreground and background colors of controls had to be assigned a
single number. If you knew the RGB values for the color, you still had to
convert them into the single number accepatable to the VB6 controls.
In VB.NET, you can't set colors that way anymore, now you have to use a
"color". There is a way to convert RGB values to a "color", using the
Color.FromARGB method. But there doens't seem to be a way to convert the old
single numbers into a "color".
In VB6, there was a method to convert rgb values into a single number, using
the RGB method. This method is still available in VB6 through the
Microsoft.VisualBasic.Information namespace. However, I have the single
numbers I used before (that were REQUIRED in VB6), I don't have separate Red,
Green, and Blue values for those numbers. Neither VB6 nor VB.NET seem to have
a method for converting a single number back to its component red, green, and
blue values!! (If there IS one, please someone tell me what it is!)
So, if there is no way to convert the single numbers back to rgb values OR
to convert them to the new "color" values, then VB.NET has changed the whole
system for assigning colors to controls, and is giving me no way to convert
the numbers that were required before into the new system. That's not very
nice!
If anyone has an answer for this, please let me know.
single number. If you knew the RGB values for the color, you still had to
convert them into the single number accepatable to the VB6 controls.
In VB.NET, you can't set colors that way anymore, now you have to use a
"color". There is a way to convert RGB values to a "color", using the
Color.FromARGB method. But there doens't seem to be a way to convert the old
single numbers into a "color".
In VB6, there was a method to convert rgb values into a single number, using
the RGB method. This method is still available in VB6 through the
Microsoft.VisualBasic.Information namespace. However, I have the single
numbers I used before (that were REQUIRED in VB6), I don't have separate Red,
Green, and Blue values for those numbers. Neither VB6 nor VB.NET seem to have
a method for converting a single number back to its component red, green, and
blue values!! (If there IS one, please someone tell me what it is!)
So, if there is no way to convert the single numbers back to rgb values OR
to convert them to the new "color" values, then VB.NET has changed the whole
system for assigning colors to controls, and is giving me no way to convert
the numbers that were required before into the new system. That's not very
nice!
If anyone has an answer for this, please let me know.