Hi guys.
Sorry for the confusing post.
The way the control is now, we have a label that gos on all of our forms to give the user feedback as to what they did.
I also use CSS to color it. If I can do it in CSS, I never do it at the server level.
But I wanted an "all on one solution" that could be drug and dropped onto a form that had everything built in.
For example, when creating this by hand, I have a class that drives a simple label. The class has a few methods.
Also the CSS in the page that gos along with it to display colors.
We figured if I could create a custom control with set properties, then it could be a tool box drag and drop.
All of the code comes with it, including what colors it displays.
Works like this:
infoLabel.ShowMessage("whatever message", isError)
isError is a boolean
If the message is empty, the label's visible property is false.
If isError is true, then the back and fore colors may be red on pink.
If isError is false the back and fore colors may be blue on white.
These depend on what developer is using it in their application.
If the app has a greenish tone, you would not want a blue label.
This was to be a test to see if it was worth converting some of our pain in the butt stuff like this to server controls.
Sorry if I was unclear.