Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 2005 > BOOK: Visual Basic 2005 Programmer's Reference
|
BOOK: Visual Basic 2005 Programmer's Reference
This is the forum to discuss the Wrox book Visual Basic 2005 Programmer's Reference by Rod Stephens; ISBN: 9780764571985
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Visual Basic 2005 Programmer's Reference section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 9th, 2006, 03:55 AM
Registered User
 
Join Date: Jul 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Controlling subitems in a listview Tile mode

I am creating a personal application thats uses a listview. my listViewItem contains many subitems which i only want them to be displyed in Details mode. How can I get rid of unwanted subitems when the listview is been switched to Tile mode? Any help is appreciated!
 
Old July 9th, 2006, 09:00 AM
Rod Stephens's Avatar
Wrox Author
 
Join Date: Jan 2006
Posts: 647
Thanks: 2
Thanked 96 Times in 95 Posts
Default

I think you can control this with the Columns collection. When you switch to Tile view, clear the collection (ListView1.Columns.Clear()). When you switch to Detail view, re-create the collection:

    ListView1.Columns.Clear()
    ListView1.Columns.Add("Column 1")
    ListView1.Columns.Add("Column 2")
    ListView1.Columns.Add("Column 3")


Rod
RodStephens@vb-helper.com
Author of "Visual Basic 2005 Programmer's Reference"
http://www.vb-helper.com/vb_prog_ref.htm

Sign up for the free VB Helper Newsletters at http://www.vb-helper.com/newsletter.html
 
Old July 10th, 2006, 08:02 AM
Registered User
 
Join Date: Jul 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Rod. Your suggestion works fine for me after making some changes to my code! By the way, I have just purchased a copy of your <<Visual Basic 2005 Programmer's Reference>>. Its very comprehensive. I would recommend any other novice programmers like me to have it on their bookshelf. Good Job!
 
Old July 11th, 2006, 07:45 AM
Rod Stephens's Avatar
Wrox Author
 
Join Date: Jan 2006
Posts: 647
Thanks: 2
Thanked 96 Times in 95 Posts
Default

Thanks! (If you have the time and are looking for a way to spend a few moments, post a review on Amazon or somewhere.)


Rod
RodStephens@vb-helper.com
Author of "Visual Basic 2005 Programmer's Reference"
http://www.vb-helper.com/vb_prog_ref.htm

Sign up for the free VB Helper Newsletters at http://www.vb-helper.com/newsletter.html





Similar Threads
Thread Thread Starter Forum Replies Last Post
controlling frames dynamically parameswaranvv Javascript How-To 1 April 9th, 2008 05:30 AM
Controlling InternetExplorer jamie_t VB How-To 2 March 15th, 2005 07:22 AM
Cascade, Tile and arrange by icons feature for a s lmadhavi Visual C++ 3 September 6th, 2004 05:03 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.