If ComboBox7.Text = ComboBox8.Text Or ComboBox7.Text = ComboBox9.Text Or ComboBox8.Text = ComboBox9.Text Then
MessageBox.Show("You have two or more of the same perk.", "Error!", MessageBoxButtons.OK, MessageBoxIcon******rmation)
If ComboBox7.Text = ComboBox8.Text Then
ComboBox7.ForeColor = Color.Red
ComboBox8.ForeColor = Color.Red
ElseIf ComboBox7.Text = ComboBox9.Text Then
ComboBox7.ForeColor = Color.Red
ComboBox9.ForeColor = Color.Red
ElseIf ComboBox8.Text = ComboBox9.Text Then
ComboBox8.ForeColor = Color.Red
ComboBox9.ForeColor = Color.Red
Else
ComboBox7.ForeColor = Color.Black
ComboBox8.ForeColor = Color.Black
ComboBox9.ForeColor = Color.Black
End If
ElseIf ComboBox1.Text = ComboBox3.Text Or ComboBox1.Text = ComboBox6.Text Or ComboBox3.Text = ComboBox6.Text Then
MessageBox.Show("You have two or more of the same weapon.", "Error!", MessageBoxButtons.OK, MessageBoxIcon******rmation)
End If
If ComboBox7.Text = ComboBox8.Text Or ComboBox7.Text = ComboBox9.Text Or ComboBox8.Text = ComboBox9.Text Then
MessageBox.Show("You have two or more of the same perk.", "Error!", MessageBoxButtons.OK, MessageBoxIcon******rmation)
If ComboBox7.Text = ComboBox8.Text Then
ComboBox7.ForeColor = Color.Red
ComboBox8.ForeColor = Color.Red
ElseIf ComboBox7.Text = ComboBox9.Text Then
ComboBox7.ForeColor = Color.Red
ComboBox9.ForeColor = Color.Red
ElseIf ComboBox8.Text = ComboBox9.Text Then
ComboBox8.ForeColor = Color.Red
ComboBox9.ForeColor = Color.Red
Else
ComboBox7.ForeColor = Color.Black //this will never happen
ComboBox8.ForeColor = Color.Black //this will never happen
ComboBox9.ForeColor = Color.Black //this will never happen
End If
ElseIf ComboBox1.Text = ComboBox3.Text Or ComboBox1.Text = ComboBox6.Text Or ComboBox3.Text = ComboBox6.Text Then
MessageBox.Show("You have two or more of the same weapon.", "Error!", MessageBoxButtons.OK, MessageBoxIcon******rmation)
End If
//this is Treeham code so it will give you a ton of syntax errors if you try to compile it If ComboBox7.Text = ComboBox8.Text Or ComboBox7.Text = ComboBox9.Text Or ComboBox8.Text = ComboBox9.Text Then if anyofthose 3 happens then turn them to red if not, turn them to black end end
'If box 7 and 8 are equal, they change to red. If not, they change to black.
If ComboBox7.Text = ComboBox8.Text Then
ComboBox7.ForeColor = Color.Red
ComboBox8.ForeColor = Color.Red
Else
ComboBox7.ForeColor = Color.Black
ComboBox8.ForeColor = Color.Black
End If
'If box 7 and 9 are equal, they change to red. If not, they change to black.
If ComboBox7.Text = Combobox9.Text Then
ComboBox7.ForeColor = Color.Red
ComboBox9.ForeColor = Color.Red
Else
ComboBox7.ForeColor = Color.Black
ComboBox9.ForeColor = Color.Black
End If
'If box 8 and 9 are equal, they change to re. If not, they change to black.
If ComboBox8.Text = ComboBox9.Text Then
ComboBox8.ForeColor = Color.Red
ComboBox9.ForeColor = Color.Red
Else
ComboBox8.ForeColor = Color.Black
ComboBox9.ForeColor = Color.Black
End If


'If box 7 and 8 are equal, they change to red. If not, they change to black.
If ComboBox7.Text = ComboBox8.Text Then
ComboBox7.ForeColor = Color.Red
ComboBox8.ForeColor = Color.Red
Else
ComboBox7.ForeColor = Color.Black
ComboBox8.ForeColor = Color.Black
End If
'If box 7 and 9 are equal, they change to red. If not, they change to black.
If ComboBox7.Text = Combobox9.Text Then
ComboBox7.ForeColor = Color.Red
ComboBox9.ForeColor = Color.Red
Else
ComboBox7.ForeColor = Color.Black
ComboBox9.ForeColor = Color.Black
End If
'If box 8 and 9 are equal, they change to re. If not, they change to black.
If ComboBox8.Text = ComboBox9.Text Then
ComboBox8.ForeColor = Color.Red
ComboBox9.ForeColor = Color.Red
Else
ComboBox8.ForeColor = Color.Black
ComboBox9.ForeColor = Color.Black
End If