Private Sub CommandButton6_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
TextBox6.ZOrder 0
Me.TextBox6.Left = Me.CommandButton6.Left + X - Me.TextBox6.Width / 2
Me.TextBox6.Visible = True
End Sub
Private Sub UserForm_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
Me.TextBox6.Visible = False
Me.CommandButton7.Caption = ""
End Sub
Private Sub CommandButton7_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
Me.CommandButton7.Caption = "Bonjour!"
End Sub
Bonjour Mapomme,Re : Affichage d'un Texte au survol d'un bouton sur un formulaire
Bonjour mavalm,
Voir deux exemples dans le fichier joint:
VB:Private Sub CommandButton6_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single) TextBox6.ZOrder 0 Me.TextBox6.Left = Me.CommandButton6.Left + X - Me.TextBox6.Width / 2 Me.TextBox6.Visible = True End Sub Private Sub UserForm_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single) Me.TextBox6.Visible = False Me.CommandButton7.Caption = "" End Sub Private Sub CommandButton7_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single) Me.CommandButton7.Caption = "Bonjour!" End Sub