1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
| 'Texte information pour les CheckBox1 à CheckBox10
Private Sub CheckBox1_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
Ma_Fonction (1)
End Sub
Private Sub CheckBox2_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
Ma_Fonction (2)
End Sub
Private Sub CheckBox3_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
Ma_Fonction (3)
End Sub
Private Sub CheckBox4_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
Ma_Fonction (4)
End Sub
Private Sub CheckBox5_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
Ma_Fonction (5)
End Sub
Private Sub CheckBox6_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
Ma_Fonction (6)
End Sub
Private Sub CheckBox7_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
Ma_Fonction (7)
End Sub
Private Sub CheckBox8_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
Ma_Fonction (8)
End Sub
Private Sub CheckBox9_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
Ma_Fonction (9)
End Sub
Private Sub CheckBox10_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
Ma_Fonction (10)
End Sub
Function Ma_Fonction(I As Integer)
' déclaration des variables
Dim oCtrl As Control
Dim Label_Name As String
'charger les variable objects
Set oCtrl = DonnéesDuGrain.Controls("Label" & I)
Label_Name = oCtrl.Name
DonnéesDuGrain.Label15.Caption = "Veillez cocher si besoin" 'Text qui s'affiche dans le label15
'décharger les variables object
Set oCtrl = Nothing
End Function |
Partager