I have no idea how to do this.
What I am trying to do is to allow user to copy certain field by using ether right click mouse or keyboard shortcut.
I need this because I am storing some fields as a code which cannot be retyped easily.
ListView allow to select only individual row at the time, and I want to select only one field of the whole table layout.
How do I do this?
PS. Or, how do I allow user to modify the content of each field. At least when they can modify the field they can copy/paste the content (changes will not be saved to my database file).
To allow the user to edit the item, you can set LabelEdit on the ListView to true. Here is the description from MSDN:
“When the LabelEdit property is set to true, the user is able to modify the text of an item by clicking the item text to select it and then clicking the item text again to put the label text into edit mode. The user can then modify or replace the item’s text label.”
Note that this does not apply to the subitems.
Copying the data out could be slightly more involved depending on the user interface that you desire (i.e. button or context menu). The easy solution would be to add a button to the form that, when pressed, would copy the content of the selected item (or any of its subitems) to the clipboard.