Results 1 to 6 of 6

Thread: ListView - Listitem shouldn't be changeable by user

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2009
    Location
    Switzerland
    Posts
    13

    Question ListView - Listitem shouldn't be changeable by user

    Hi,

    I have a question to my ListView. I'm using the View "lvwReport" and my Listview has 10 "Columns" or Subitems.
    If the Userform is shown, I can change the first Subitem manually.
    How can I lock this Listitem, so that nobody except my code can change the value of this item?

    Thanks for each suggestion.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: ListView - Listitem shouldn't be changeable by user

    The easiest way would be to disable it.

  3. #3

    Thread Starter
    New Member
    Join Date
    Mar 2009
    Location
    Switzerland
    Posts
    13

    Re: ListView - Listitem shouldn't be changeable by user

    Excuse me for this stupid question, but... HOW?

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: ListView - Listitem shouldn't be changeable by user

    Through its property page.

    Set enabled to false

    or

    right click on the control and uncheck the enabled checkbox

  5. #5
    Head Hunted anhn's Avatar
    Join Date
    Aug 2007
    Location
    Australia
    Posts
    3,669

    Re: ListView - Listitem shouldn't be changeable by user

    Set LabelEdit to 1-lvwManual at design time, or by code:
    ListView1.LabelEdit = lvwManual
    • Don't forget to use [CODE]your code here[/CODE] when posting code
    • If your question was answered please use Thread Tools to mark your thread [RESOLVED]
    • Don't forget to RATE helpful posts

    • Baby Steps a guided tour
    • IsDigits() and IsNumber() functions • Wichmann-Hill Random() function • >> and << functions for VB • CopyFileByChunk

  6. #6

    Thread Starter
    New Member
    Join Date
    Mar 2009
    Location
    Switzerland
    Posts
    13

    Re: ListView - Listitem shouldn't be changeable by user

    Thank you anhn, it works

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width