Handles Action1.click, Action2.SelectedColorChangedà condition que ces deux events, Action1.click et Action2.SelectedColorChanged, aient les mêmes paramètres !
Merci. Visiblement aucune des 2 propositions ne marchent !
Private Sub Action2_SelectedColorChanged(ByVal sender As System.Object, ByVal e As ColorChangedEventArgs) Handles Action2.SelectedColor msgbox("Victoire !!!!") End Sub Private Sub Action1_click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Action1.click Action2_SelectedColorChanged(Action1, Nothing) 'ou alors si tu veux construire l'événement ColorChangedEventArgs valide: 'Action2_SelectedColorChanged(Action1, New ColorChangedEventArgs(parametres,...)) End Sub
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionPrivate Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click MessageBox.Show("bouton 1 click") End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Button1_Click(sender, e) End Sub