Simplest of .NET programs




Well, I have a little extra time today and
an almost not used copy of D2006, so I decided
I would create my .NET "hello world" program ...
but actually mine is a "hello bob", "hi there bob"
program. It has a button and a textbox and each
time you click the button the textbox jumps from
one to the other.

Compiled it and placed it onto a web server and double
clicked it with IE. No problem - well there was one little warning message
about this program running in a "partially
trusted context , yada yada" .
But anyway it worked !! Very good.

So, then I tried to change the color of the button
upon a click. I saw in the "designer" where the colors
are specified as red,blue ... not clRed, clBlue. And in
the "Form designer" the colors worked well ... but when
I tried to compile it, I got an error message about
"Red not defined"
So, it must be name space thing ... how do I
fix my little "hello bob" program?

For us Delphi-focused people ... is "namespace" like
"uses" ?

Thanks for any help,
Bob


.