Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Remove Popup Menu
Message
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Divers
Thread ID:
00267551
Message ID:
00267687
Vues:
20
>>I need the control be enabled
>> but without popup menu
>
>Is it cause you want to display your own popup menu? If so, try this:
>
>Private Sub Text1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
> If Button = vbRightButton Then
> Text1.Enabled = False
> Text1.Enabled = True
> Me.PopupMenu mnuTest
> End If
>End Sub

Hi Eric,

I tried it in MS Access 97 and it didn't work. It gave an error message saying, that I can't disable a control while it has the focus. Constant vbRightButton is not defined in MS Access 97. After experiment I found out that its value is 2.

Sincerely,
Igor Gelin
Database Developer
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform