How to edit any Item and/or SubItems in a ListView Control

If you have completed an application and wish to share the complete source/project files with everyone then please post it in here. Source-code files only, no tutorials.
4 posts Page 1 of 1
Contributors
User avatar
Scottie1972
Codenstuff Elite
Codenstuff Elite
Posts: 953
Joined: Thu Jan 14, 2010 5:48 am

How to edit any Item and/or SubItems in a ListView Control
I found this while surfing Goolge one day. I change somethings around to suit my needs.
But any one with XML time can figure out out to save and update the .XML file.

But basically all this is, is a Editable ListView Control.
Its easy to use and a nice addition to any application.

Image
Image
Image
Image
Image

3 things you have to remember.
ListView1.FullRowSelect = True
ListView1.LabelEdit = True
TextBox1.Visible = False

The rest of the code should be pretty easy to understand.
If you have any propblems, take a look at the Form1.Design.vb. It will tell you how the other controls
are configured. or You can send me a PM and I will get back to you as soon as I can.

Source Files
Fun with a ListView.zip

The XML file looks like this.
Code: Select all
<?xml version="1.0" encoding="utf-8" ?>
<example>
  <person first="Scott" last="Knapp" email="scot@mail.com" age="41" address="1313 Mocking Bird Ln"/>
  <person first="Jason" last="Bourne" email="jb@crap.net" age="35" address="100 BS Joke Rd"/>
  <person first="Micky" last="Mouse" email="mousemickey@disney.com" age="75" address="unknown"/>
  <person first="Bob" last="Bod" email="bob@codenstuff.com" age="25" address="unknown"/>
  <person first="Harry" last="Potter" email="hp@hogwarts.com" age="11" address="ask his owl"/>
  <person first="Amber" last="CrazyChick" email="unknown" age="35" address="dont wanna know"/>
</example>
You do not have the required permissions to view the files attached to this post.
Image
User avatar
Dummy1912
VIP - Donator
VIP - Donator
Posts: 1969
Joined: Sat Aug 21, 2010 2:17 pm

#CodenStuff it seems there are problems with the downloads
its not loading :(
its not the first time because in this topic
has the same problem
viewtopic.php?f=21&p=78365#p78365
visit us on:


http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
User avatar
CodenStuff
Site Admin
Site Admin
Posts: 4389
Joined: Tue Aug 04, 2009 1:47 am

Downloads are working fine for me. It was probably just a temporary server glitch..seems ok now :?
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
User avatar
Dummy1912
VIP - Donator
VIP - Donator
Posts: 1969
Joined: Sat Aug 21, 2010 2:17 pm

download working :)
visit us on:


http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
4 posts Page 1 of 1
Return to “Source-Code”