Important alert: (current site time 7/16/2013 9:59:53 AM EDT)
 

winzip icon

ListView 84 Subs and Functions

Email
Submitted on: 10/23/2003 12:26:31 AM
By: Just My Stuff 
Level: Intermediate
User Rating: By 27 Users
Compatibility: VB.NET
Views: 26951
(About the author)
 
     Just learning how to manipulate the ListView Control and thought I would pass this along. Might do more controls later on if response is good. If you find some of these useful please vote :>) Subs and Functions Check all Items in ListView UnCheck all Items in ListView Remove Checked ListView Items Remove UnChecked ListView Items Copy ListView Column Copy Entire ListView Copy Selected Column Items In ListView Copy Selected Row Items In ListView Copy Column Headers In ListView Copy Formatted ListView Copy And Format Selected Items In ListView Copy Checked ListView Column Copy Checked ListView Rows Count ListView Column Headers Count ListView SubItems Columns Count ListView Column Items As Sum Count Selected ListView Column Items As Sum Count ListView Items Count Selected Items In ListView Count Unselected Items In ListView Count Checked Items in ListView Count UnChecked Items in ListView Count Duplicate Items in ListView RemoveDuplicateItemsInListView RemoveDuplicateSubItemsInListView Remove First Item In ListView Remove Last Item in ListView Remove Selected ListView Item Or Items Remove UnSelected ListView Item Or Items Remove NonMatching Items in ListView Remove NonMatching SubItem in ListView RemoveNonExactMatchingItemsInListView Remove Matching Item in ListView Remove Matching SubItem in ListView Remove Exact Matching Item in ListView Clear ListView Remove ColumnHeaders in ListView Remove ColumnHeader in ListView Resize All ListView Columns But Item Column Resize Last Column Resize ListView Columns Equally Is Item Checked in ListView Is Item Selected In ListView Is ListView Full Color ListView Color Stripe ListView Rows BackColor Color ListView BackColor Row Color ListView Rows BackColor To Default Color Color Selected ListView Rows BackColor Color Selected ListView Rows BackColor To Default Color All ListViews On Form Select All ListView Items Deselect All ListView Items Get First Selected Item In ListView Get First Selected SubItem In ListView Get First Selected Row In ListView Get ListView Column As String Get Entire ListView Get Selected Column Items In ListView Get Selected Row Items In ListView Get Formatted ListView Get Column Headers in ListView Goto First Item in ListView Goto Last Item in ListView Goto Row Item in ListView Load Basic ListView File Save ListView as Basic ListView File Save ListView Column as File Search ListView By Column Search Entire ListView Search For Closest Match In ListView Search For Closest Match In ListView Column Find First Item Or SubItem In ListView Find Next Item Or SubItem In ListView Selected ListView Items ListIndex For User Selected ListView ListIndex Send a ListView Column to ComboBox Send Selected ListView Items From Column To ComboBox Send a ListView Column to ListBox Send Selected ListView Items From Column To ListBox Send ListView Column to TextBox Send Selected ListView Column Items To TextBox
 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 4 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

10/23/2003 10:32:08 PMEduard Yakimov

Good job ***** from me
(If this comment was disrespectful, please report it.)

 
10/23/2003 10:43:48 PMChris

awesome!!
(If this comment was disrespectful, please report it.)

 
10/23/2003 11:40:46 PMJust My Stuff

thanks guys :)
(If this comment was disrespectful, please report it.)

 
11/21/2003 10:08:39 PM

goook
(If this comment was disrespectful, please report it.)

 
12/13/2003 1:10:57 AMCharles May

Excellent Work, Nice use of the #Regions too, makes it easy to find what you need quickly. Thanks for sharing.
(If this comment was disrespectful, please report it.)

 
1/19/2004 2:28:36 PM

Good Job!You are very nice!
(If this comment was disrespectful, please report it.)

 
4/7/2004 10:52:46 PMIván Londońo

Thanks, very useful!
(If this comment was disrespectful, please report it.)

 
6/17/2004 1:34:33 PMDace Shandon

Great code. Might I suggest adding an XML load/save option? 5 stars
(If this comment was disrespectful, please report it.)

 
6/21/2004 9:29:19 AM

great job, helped me a lot. keep it up!
(If this comment was disrespectful, please report it.)

 
9/16/2004 7:19:11 AMTimothy Appiah

Nice
(If this comment was disrespectful, please report it.)

 
1/14/2005 11:09:59 AMvasilakis

5g :)
(If this comment was disrespectful, please report it.)

 
2/3/2005 6:46:01 AMnongodili

Very nice. Thanks!
(If this comment was disrespectful, please report it.)

 
4/4/2005 9:59:04 PM

I am writing a POS application and this is by far the best and most helpful example code i have found on manipulating the listview control. Thanks Guy....You ROCK!!!!!
(If this comment was disrespectful, please report it.)

 
4/26/2005 3:28:30 AM

good..thanks a lot.
(If this comment was disrespectful, please report it.)

 
12/1/2006 7:05:33 PMJonathan

98 Errors! All the same
Overload resolution failed because no accessible 'Item' can be called without a narrowing conversion:
(If this comment was disrespectful, please report it.)

 
2/10/2008 1:25:47 AMsubjectz

To the above poster, change 'As Long' to 'As Integer' for the Overload errors.

Great code, thankyou very much.
(If this comment was disrespectful, please report it.)

 
8/21/2008 11:37:11 PMRomeo

yes, its quite good, but there is still error on it, but its ok.
(If this comment was disrespectful, please report it.)

 
1/24/2009 12:33:56 PMRobert Burlile

Great code. Fills in a lot of empty answers
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.