Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6695907
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:16:42+00:00 2026-05-26T06:16:42+00:00

I am rewriting a VB6 program in C# and the VB program uses the

  • 0

I am rewriting a VB6 program in C# and the VB program uses the QBColor function

At http://msdn.microsoft.com/en-us/library/d2dz8078(v=VS.80).aspx it states which number is equal to which colour.

Furthermore, on http://msdn.microsoft.com/en-us/library/zc1dyw8b(v=VS.80).aspx it says that Blue (according to Microsoft) is 0,0,255 (no objection really). But what is the then the difference between Blue and LightBlue?
Those two pages can not mean the same colour when they talk about blue?

Does anyone have the RGB translation table of the colours for QBColor? I would suspect that

QBColor(1) Blue is equal to RGB(0,0,128)

QBColor(9) LightBlue is equal to RGB(0,0,255)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T06:16:42+00:00Added an answer on May 26, 2026 at 6:16 am

    You’re correct. Blue is (0,0,128).
    Here is the code to go from QBColor to RGB:

    Dim Color As Integer
    Color = 1
    Console.WriteLine(&HFF& And QBColor(Color))
    Console.WriteLine((&HFF00& And QBColor(Color)) \ 256)
    Console.WriteLine((&HFF0000 And QBColor(Color)) \ 65536)

    You can easily put it in a loop to check all the values.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently rewriting an old VB6 program in C# in the .Net Framework 2.0
I’m looking at rewriting a portion of our application in C# (currently legacy VB6
I am rewriting a project so that it uses getters and setters to reference
I'm rewriting a VB 6.0 program in C# .Net for an internship. It measures
I am rewriting a VB6 form in WPF for my companies internal application. The
i am using url rewriting like RewriteRule ^mobiles/(.*)$ /mobile_rating.php?alias=$1 [L,B] which works well for
We have a legacy VB6 app, which is critical to our business. We're working
Background: I'm rewriting a VB6 app that used MS Access for data storage to
We have a Com+ VB6 DLL used in our asp classic application. After upgrading
I'm currently re-writing a Vb6 program relying on ADO into C# w/ ADO.NET. I've

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.