Re: Make Listview item labels read only and remove floating menu VB6



lvwMylistView.LabelEdit = lvwManual

should do the trick

-OO-

"Edwinah63" <edwinah@xxxxxxxxxxxxxxxxxxx> wrote in message
news:1168127227.061695.269350@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
HI everyone,

I have am currently using VB6 for a project at a client's request (so
no suggestions to move to .net please ;)

I am using the listview control with:

* checkboxes
* multi select
* report view but no column headers so it looks like a listbox

to produce a list of selectable items eg:

chk fish
chk cat
chk dog

where chk stands for the checkbox beside each item in the listview.

My problem is that when a user clicks on the item label beside the
checkbox for example

user clicks on "fish" directly

the label goes into edit mode (exactly the same as for renaming files)
and the user can overwrite the label. Ditto if a user right clicks on
the label a floating menu appears allowing the user to cut, copy or
delete!

While this has not effect on the backend, it is confusing for the
users.

How can I make the item labels in the list view read only and remove
the floating menu?

Thanks in advance.

Edwinah63



.



Relevant Pages