473,404 Members | 2,137 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,404 software developers and data experts.

Context menu in listview

Is there a way to display a context-sensitive menu after the user has clicked
on a listview item and entered into the label edit mode?

I can capture the "BeforeLabelEdit" event and display the menu there, but
that is too soon to show the menu. I need the menu to show when they are
actually editing the text.

The purpose for this is that I would like to be able to let the user select
from items on the menu to place at the location of the insertion bar/cursor.
Example: the user clicks on a list view item that has this text: "Windows is
great". They place the focus bar after the letter "s" in the word "Windows",
right click and a menu pops up that has the choices of "NT", "2000" and "XP".
The user selects the "XP" item and the code would insert the selected text at
the insertion point so that the listview text would now read "WindowsXP is
great"
Aug 29 '05 #1
0 1059

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Mohit Gupta | last post by:
Hi all, Lately I have been working on an application in VB .net CF for Pocket PC device. I have a small question about Context Menu. When I try to close the window after context menu is poped...
4
by: Aaron Queenan | last post by:
How can I use the designer to add a context menu to a class which inherits from a control, e.g. treeview, without adding the context menu to a form? For example, to add a context menu with...
2
by: Brian Keating | last post by:
Hi there, I fear the answer to this question is going to be very simple but it's me running around in circles at the moment. I wish to pop up a context menu on my ListView if and only if I right...
2
by: Dino M. Buljubasic | last post by:
I have several context menus added to my form. The form is displaying items in listviews connected to the context menus. When I click on an item in a list view, a popup context menu shows allowing...
8
by: Sameh Ahmed | last post by:
Hello there i have a context menu linmked to a listview control. I want the context mnu to appear ONLY when i right click on an item and not any place in listview. any ideas? Thanks in advance....
2
by: Darin | last post by:
I have 2 listview's that have the same context menu tied to them. WHen the user opens the context menu and clicks on one of the menu items, how (within the handles mSelPrice_click) method can I...
3
by: J L | last post by:
I have a form with a listview on it and a context menu. I handle the right click event on the listview but after handling the event, the context menu then appears. I would like to disable it if the...
0
by: clu82 | last post by:
Is there a way to display a context-sensitive menu after the user has clicked on a listview item and entered into the label edit mode? I can capture the "BeforeLabelEdit" event and display the...
2
by: Bry | last post by:
I have a context menu which is shared between a TreeView and ListView control (both controls show the same information, similar to how Windows Explorer works, so it makes sense to use the same menu...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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...

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.