Make Listview item labels read only and remove floating menu VB6



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

  • Re: Make Listview item labels read only and remove floating menu VB6
    ... chk fish ... 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 ... the floating menu? ...
    (microsoft.public.vb.controls)
  • Re: How to modify label.text in a dynamically generated label in VB.net
    ... hybrid control that contains a checkbox and a label. ... That frees up the tag ... CheckBox control and the value was the Label control. ...
    (microsoft.public.dotnet.languages.vb)
  • Inconsistent CheckBox Color -- Anyone?
    ... Hi...sorry, over 30 days, so I've included the original thread below, ... but when I move from the control - ... I set vb code so a checkbox on my form enables its label to change ... CheckBox control changes. ...
    (microsoft.public.access.forms)
  • Re: how to have a checkbox change color and text of a label control?
    ... So could you make the label control box change color instead of the font? ... states "Private Sub Form_Current is highlighted yellow ... Name the checkbox and the label with similar names. ...
    (microsoft.public.access.forms)
  • Re: Table design - field limits
    ... ID - primary key ... Label - what you now use as the label of ... Label - foreign key into tblAttributes ... stored in your table by checking the checkbox labelled XXX in the record ...
    (microsoft.public.access.tablesdbdesign)