Have Color.FromName return Color.FromARGB(255,0,0,0) where the string that is passed to it is not recognised.
Have Color.FromName return Color.FromARGB(255,0,0,0) where the string that is passed to it is not recognised.
This would support Forms and controls which only support solid colors.
19
votes
3 comments
-
Philippe
commented
Make your own (extension) method and use it whenever you want a fully opaque color.
-
Carmelo La Monica
commented
Hy Jhon ,
This good idea, I try and let you know.
Bye
-
John A. Oliver commented
Mentioned in the MSDN forums here.>>
http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/d7fd2979-d19c-4bf8-86b5-812051314a85