Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remove Popup Menu
Message
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00267551
Message ID:
00267687
Views:
21
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform