Experts Exchange connects you with the people and services you need so you can get back to work.
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
PictureBox1.BackColor = Color.Blue
Dim xColor As Color = Color.FromArgb(255, 0, 0, 255)
If PictureBox1.BackColor.A = xColor.A _
And PictureBox1.BackColor.R = xColor.R _
And PictureBox1.BackColor.G = xColor.G _
And PictureBox1.BackColor.B = xColor.B Then
If PictureBox1.BackColor = xColor Then
Open in new window
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.
Premium members get this course for $62.50.
Premium members get this course for $159.20.
Premium members get this course for $122.40.
Premium members get this course for $168.80.
Premium members get this course for $389.00.
Premium members get this course for $151.20.