Backcolor using  RGB(255, 150, 150) in from vb.6

Posted on 2005-05-11
Last Modified: 2008-03-03
I am in the process of coverting code over to from vb6. I am having trouble seting the backcolor using RGB(). this is the code in vb6

cboCAR.BackColor = RGB(255, 150, 150)

I am trying to find how this would be written in
Question by:jm1576
    LVL 34

    Accepted Solution

    cboCAR.BackColor = Color.FromArgb(red, green, blue)

    or from your example

    cboCAR.BackColor = Color.FromArgb(255, 150, 150)

    LVL 34

    Expert Comment


    Good luck with the rest of your project!


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    I'm currently working for a company where I have to upgrade over 50 VB6 programs to VB.NET 2008.  So far I'm about half way through, and I've learned quite a few tricks that drastically improve the performance of VB.NET apps. Because there are a…
    Article by: Kraeven
    Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now