21-11-22, 12:44 AM
هل يمكن التعديل على هذا الكود الغبي
علماً بأن الكود شغال لكنه غبي جداً هههههه
المطلوب إذا كان .... (RadioButton1 = true + RadioButton2 = false)
فإن لون
(RadioButton1 = White + RadioButton2 = red)))
أما إذا كان .... (RadioButton1 = false + RadioButton2 = true)
فإن لون
(RadioButton1 = red + RadioButton2 = White)
علماً بأن الكود شغال لكنه غبي جداً هههههه
المطلوب إذا كان .... (RadioButton1 = true + RadioButton2 = false)
فإن لون
(RadioButton1 = White + RadioButton2 = red)))
أما إذا كان .... (RadioButton1 = false + RadioButton2 = true)
فإن لون
(RadioButton1 = red + RadioButton2 = White)
كود :
If RadioButton1.Checked = True Then
RadioButton1.ForeColor = Color.White
ElseIf RadioButton1.Checked = False Then
RadioButton1.ForeColor = Color.Red
End If
If RadioButton2.Checked = True Then
RadioButton2.ForeColor = Color.White
ElseIf RadioButton2.Checked = False Then
RadioButton2.ForeColor = Color.Red
End If
إذا طُعِنتَ من الخلفِ فاعلمْ أنك في المقدمةِ

