Saturday, August 21, 2010

How to acquire the color of text from one label control to another (2 separate .vb files but same project).?

I'd like to make something common for everyone to use. That is displaying the proper color of the text of a label depending on the type provided (';red'; when it's an error message and ';black'; when it's a warning message.). This is in VB.NET.How to acquire the color of text from one label control to another (2 separate .vb files but same project).?
You can always set a value in an INI file indicating the color state of either label, and make each label correspond to the INI file key.How to acquire the color of text from one label control to another (2 separate .vb files but same project).?
Okay, it's been awhile since I used Visual Studio, so I can't tell you all the File Menu options to select, but:





1. open the first file, check the settings for the color you want (check the properties dialog box to find these out). Write down the settings.





2. Open the second file, select the object(s) that you want to use these settings on (you should be able to hold down control %26amp; select more than one if desired) and apply the settings you wrote down - using the properties dialog.





Sorry, there is no easier way to transfer part of a project.
I totally don't know if this would work for you...but I know you can put the text in photo shop and make a .jpg of the color...

No comments:

Post a Comment