Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionPrivate Sub Text1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single) ' afficher un menu contextuel perso sur un textbox ' avec gestion du texte sélectionné Dim SelStart As Integer Dim SelLenght As Integer If Button = 2 Then SelStart = Text1.SelStart SelLength = Text1.SelLength Text1.Enabled = False Text1.Enabled = True Text1.SelStart = SelStart Text1.SelLength = SelLength Text1.SetFocus PopupMenu MnuMenu End If End Sub
Private Sub Text1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single) ' afficher un menu contextuel perso sur un textbox ' avec gestion du texte sélectionné Dim SelStart As Integer Dim SelLenght As Integer If Button = 2 Then SelStart = Text1.SelStart SelLength = Text1.SelLength Text1.Enabled = False Text1.Enabled = True Text1.SelStart = SelStart Text1.SelLength = SelLength Text1.SetFocus PopupMenu MnuMenu End If End Sub