[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2538
  • Last Modified:

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

I am in the process of coverting code over to vb.net 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 vb.net
0
jm1576
Asked:
jm1576
  • 2
1 Solution
 
flavoCommented:
cboCAR.BackColor = Color.FromArgb(red, green, blue)

or from your example

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

Dave
0
 
flavoCommented:
Thanks!

Good luck with the rest of your project!

Dave
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now