Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > vbRed, vbGreen, vbBlue, vbYellow and what others can be used??

Thread Tools Display Modes
Old 07-16-2002, 01:25 PM
Posts: n/a
Question vbRed, vbGreen, vbBlue, vbYellow and what others can be used??

Really dumb question, oh well -- what other basic (or any other) colors work with "vbxxxx"?

I've had success with vbRed, vbGreen, vbBlue, vbYellow

... But when I've tried vbBrown, vbOrange, vbPurple, vbPink - these do not work, did not try any others after that.
Reply With Quote
Old 07-16-2002, 01:28 PM
ChiefRedBull's Avatar
ChiefRedBull ChiefRedBull is offline

Retired Moderator
* Expert *
Join Date: May 2001
Location: england
Posts: 6,321

Press F2 - and look them up in the Object Browser.
Chuck Norris ordered a Big Mac at Burger King, and got one.
Reply With Quote
Old 07-16-2002, 01:29 PM
Volte's Avatar
Volte Volte is offline
Ultimate Contributor

Retired Leader
* Guru *
Join Date: Aug 2001
Posts: 5,344

In the code window, type ColorConstants. (with the dot)
and a list should drop down. You can use the RGB function
to get any color:

RGB(255,0,128) gives a kind of pinkish color, for example.
Reply With Quote
Old 07-16-2002, 01:55 PM
Posts: n/a

ahh OK! Got it on both methods, never used before, but now I know what they are. Just tried them ... Thank You for pointing them out.
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..