By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,281 Members | 2,268 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,281 IT Pros & Developers. It's quick & easy.

Context menu in listview

P: n/a
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
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.