Wrox Programmer Forums
BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003
This is the forum to discuss the Wrox book Professional VB.NET 2003 by Bill Evjen, Billy Hollis, Rockford Lhotka, Tim McCarthy, Jonathan Pinnock, Rama Ramachandran, Bill Sheldon; ISBN: 9780764559921
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 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 August 14th, 2006, 07:29 PM
Registered User
Join Date: Aug 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default About Listview control

I'm a new VB.Net2003,anybody can tell me how to get the value of listview control during clicked any item?

Old August 15th, 2006, 04:56 AM
Thearon's Avatar
Wrox Author
Join Date: Dec 2003
Posts: 396
Thanks: 0
Thanked 8 Times in 8 Posts

Here's some sample code from an application not in the book.


            'Get the specific project selected in the ListView control
            objDataSet = objProjects.GetProject( _
                New Guid(lvwProjects.SelectedItems.Item(0).Tag.ToStrin g))

            'Populate the Project Details section
            txtProjectID.Text = _
                objDataSet.Tables("Project").Rows(0).Item( _
            txtProjectName.Text = _
                objDataSet.Tables("Project").Rows(0).Item("Project Name")
            txtProjectDescription.Text = _
                objDataSet.Tables("Project").Rows(0).Item( _
            txtSequenceNumber.Text = _
                objDataSet.Tables("Project").Rows(0).Item("Sequenc eNumber")
            txtProjectUpdateDate.Text = _
                objDataSet.Tables("Project").Rows(0).Item("LastUpd ateDate")

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with ListView Control in C# jiggsroger C# 2005 7 April 7th, 2008 04:25 AM
Refreshing a ListView control osemollie Pro VB 6 1 July 26th, 2006 10:00 AM
ListView Control JelfMaria VB How-To 4 May 5th, 2005 12:39 AM
ListView Control jlr27613 C++ Programming 1 September 14th, 2004 12:58 PM
listview control jakeone Beginning VB 6 1 March 9th, 2004 08:29 AM

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