Afficher un message
Vieux 22/11/2005, 03h05   #7 (permalink)
Yvon
Guest
 
Messages: n/a
Par défaut Re:backcolor dans textbox conditions multiples

Cela marche mais une fois, à la première sélection, il faudrai que le code se réinitialise à chaque selection du menu déroulant, est ce que cela est faisable.

J'ai trafiqué un peu ton code initial de la façon suivante :
Case 30
multiprest.TextBox1.BackColor = &HFFFFFF
multiprest.TextBox2.BackColor = &HFF&
multiprest.TextBox3.BackColor = &HFFFFFF
Case 31
multiprest.TextBox1.BackColor = &HFFFFFF
multiprest.TextBox2.BackColor = &HFFFFFF
multiprest.TextBox3.BackColor = &HFF&
Case 32
multiprest.TextBox1.BackColor = &HFF&
multiprest.TextBox2.BackColor = &HFFFFFF
multiprest.TextBox3.BackColor = &HFF&
Case 33
multiprest.TextBox1.BackColor = &HFF&
multiprest.TextBox2.BackColor = &HFFFFFF
multiprest.TextBox3.BackColor = &HFFFFFF
End Select
End With
End If
End If
End Sub

a++
Yvon
  Réponse avec citation