Jump to content

Recommended Posts

Posted
Private Sub Command1_Click()
Dim a, b, c As Color
Dim j, k, l As Integer
a = Picture1.BackColor
b = Picture2.BackColor
c = Picture3.BackColor
j = Int(Rnd * 3) + 1
If j = 1 Then
a = RGB(255, 0, 0)
End If
If j = 2 Then
a = RGB(0, 165, 255)
End If
If j = 3 Then
a = RGB(30, 255, 30)
End If
k = Int(Rnd * 3) + 1
If k = 1 Then
b = RGB(255, 0, 0)
End If
If k = 2 Then
b = RGB(0, 165, 255)
End If
If k = 3 Then
b = RGB(30, 255, 30)
End If
l = Int(Rnd * 3) + 1
If l = 1 Then
c = RGB(255, 0, 0)
End If
If l = 2 Then
c = RGB(0, 165, 255)
End If
If l = 3 Then
c = RGB(30, 255, 30)
End If
End Sub

O que é que está mal ? O erro dá-se em Dim a, b, c As Color

User-defined type not-defined

Quero agradecer desde já ao Ridelight, foi com o programa dele que consegui encontrar as perfect colors para a Slot 😞

http://ridelight.no.sapo.pt/simulador.html

PS: Tenho 3 PictureBox's e 1 Botao 🙂

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.