473,289 Members | 2,087 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,289 software developers and data experts.

Custom right click menu strange behavior

Seth Schrock
2,965 Expert 2GB
I've got a form with a custom right click menu, called via the Mouse_Up event on one of the textboxes. The strange behavior is that if I right click (getting my custom menu) and then just click out of it (click somewhere else to get rid of it), then my form loses its filter. If I click one of the items in the custom menu, then the filter stays in place. Is this a bug? Is there a way to program it to not lose the filter? The filter in this case is applied via the form's Filter property.

I apologize if I haven't provided enough information. I really have no idea what could be causing this behavior and don't want to dump a lot of information that isn't pertinent.
Dec 3 '21 #1
4 13709
NeoPa
32,554 Expert Mod 16PB
Hi Seth.

I think you're maybe making this more complicated than you need to. What about the Form property Shortcut Menu Bar setting (Found under Other.)? Here's an Access MVP's page to some help describing how to use this (Setting Up Right Click Menus for Access 2007).

Controls (Some at least.) also have the same property available.
Dec 3 '21 #2
isladogs
454 Expert Mod 256MB
Suggest you upload a sample dB that exhibits this behaviour
Dec 3 '21 #3
Seth Schrock
2,965 Expert 2GB
Sorry it has taken me so long to respond. I'm working on other issues at the same time.

@NeoPa - I rarely use custom right click menus, and it seems I may have found the most complicated method. I will try the way in the link and post the results.

@Isladogs - Currently, my backend is sql server with a lot of stored procedure calls, but I'll see if I can create a simple database with the same right click code to duplicate the issue.
Dec 7 '21 #4
NeoPa
32,554 Expert Mod 16PB
No worries about delays Seth. Let us know how you get on though :-)
Dec 9 '21 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: yaktipper | last post by:
This explains how to disable the view source / right-click menu in Netscape 4, Netscape 6 and Internet Explorer (IE). <script language="JavaScript"> //This code is the beginning of the right...
5
by: MisterG | last post by:
Using the following code I am able to open a new window when a user right clicks an object in my document. if (window.event.button == 2) { Win1 = window.open("","","height=200,width=200");...
5
by: Add and Paste | last post by:
Dear Access developers, I have a lot of cut and pasting to do from Excel to an Access form. But instead of just pasting, I want to "add then paste" the value. Does anybody have a way to do this?...
3
by: Anand Ganesh | last post by:
Hi All, When the user right clicks on the desktop or selects a file and right clicks the mouse he should see our own submenu along with the Windows context menu. How will I do this in Visual C#...
0
by: Antoine | last post by:
I havent got room on an aspx forms data items but want to have an alternate option to double click on its link (like a right click context menu) so make the most of functionality with the lack of...
1
by: Grey | last post by:
is it possible to design the custom right click popup menu in IE??
2
by: Mad Scientist Jr | last post by:
I am editing an existing application that has a System.Windows.Forms.TreeView with a right-click menu with several options. I want to get rid of the TreeView alltogether and rip out the code for...
2
by: Joe J. | last post by:
How to add an option to windows explorer right click menu? I'd like add my own option to the Explorer right-click menu. So lets say in case the file has extension ".AVI" I want to see an option...
4
by: Przemek M. Zawada | last post by:
Dear Group, I have written a software (C#/VS2005), which enter current directory, match all requested files and rename it recursively (removing special chars, etc). What I want is to add in...
4
Seth Schrock
by: Seth Schrock | last post by:
In looking online I have come up with the following code.Public Sub CreateMenu() On Error GoTo Error_Handler Dim cmdBar As CommandBarControl On Error Resume Next CommandBars("MyMenu").Delete...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.