Results 1 to 6 of 6

Thread: Selecting Listview

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2002
    Location
    http://www.vbforums.com
    Posts
    164

    Talking Selecting Listview

    Hi, I have a few problems with listview:

    1) I want to select an item in the listview which later I need to remove an amount of the item from the listview. Let's say I selected Raw Material with an amount of 200. I click "Remove" button and remove 100 unit from the Raw Material. How do I actually do this?

    2) I notice that when I select the item in the listview, it allows me to rename the item. What can I do to prevent the user from doing the same thing?

    Please help. Thanks
    "If ignorance is bliss, that probably explain why I'm in a such a mess right now!!"

  2. #2
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    1) What?

    2) Set the LabelEdit property to lvwManual
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jan 2002
    Location
    http://www.vbforums.com
    Posts
    164
    Sorry, perhaps my question is confusing. This is the scenario...
    I have a listview showing item name and total stock.

    When I click on the item, I want to have the option to change the total stock and then update it to database.

    Clearer now?
    "If ignorance is bliss, that probably explain why I'm in a such a mess right now!!"

  4. #4
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    Sth like this...
    VB Code:
    1. ListView.SelectedItem.ListSubItem("Stock") = ListView.SelectedItem.ListSubItem("Stock") - 100
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Jan 2002
    Location
    http://www.vbforums.com
    Posts
    164
    Thanks a lot, McBrain!
    "If ignorance is bliss, that probably explain why I'm in a such a mess right now!!"

  6. #6
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    any time
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

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