Simplest of .NET programs
- From: "BobW" <Testing@xxxxxxxxxxxxx>
- Date: Thu, 2 Feb 2006 15:28:01 -0500
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
.
- Follow-Ups:
- Re: Simplest of .NET programs
- From: Joanna Carter [TeamB]
- Re: Simplest of .NET programs
- From: Edwin Lau
- Re: Simplest of .NET programs
- From: Adam Roslon
- Re: Simplest of .NET programs
- Prev by Date: Re: The evils of nested procedures and the beauty of exceptions
- Next by Date: Re: Capturing scanned documents as PDF files through TWAIN
- Previous by thread: Re: The evils of nested procedures and the beauty of exceptions
- Next by thread: Re: Simplest of .NET programs
- Index(es):