473,425 Members | 1,739 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,425 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 13723
NeoPa
32,556 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
456 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,556 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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.