Module Module1
Sub Main()
Console.WriteLine("Test White on Black")
Console.BackgroundColor = ConsoleColor.Blue
Console.WriteLine("Test White on Blue")
Console.ForegroundColor = ConsoleColor.Yellow
Console.WriteLine("Test Yellow on Blue")
Console.ReadLine()
End Sub
End Module
Nah ... that is too easy. Real men use API (as is being done
when setting those two properties) :)
So much stuff in the framework. So much still left out.
Hard to keep up.
/JB
On Fri, 20 Oct 2006 15:38:06 +1000, "Lloyd Dupont" <net.galador@ld>
[quoted text, click to view] wrote:
>There are new API in .NET2
>Llok in the System.Console class documentation.
>What about Console.ForegroundColor ?
>
>
>"John Harcourt" <JohnHarcourt@discussions.microsoft.com> wrote in message
>news:825D25E3-C886-44D5-9024-8CFE9F23E5DA@microsoft.com...
>>
>> In a console application, how can I specify the color of the text when I
>> do
>> a System.WriteLine() method? This is assuming of course that the output is
>> the console.
>>
>> Thanks for any help.
>>
>