Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old August 14th, 2006, 08:29 PM
Registered User
 
Join Date: Aug 2006
Location: , , China.
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?

  #2 (permalink)  
Old August 15th, 2006, 05:56 AM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
Location: Fuquay Varina, NC, USA.
Posts: 396
Thanks: 0
Thanked 8 Times in 8 Posts
Default

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

Thearon

            '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( _
                "ProjectID").ToString.ToUpper
            txtProjectName.Text = _
                objDataSet.Tables("Project").Rows(0).Item("Project Name")
            txtProjectDescription.Text = _
                objDataSet.Tables("Project").Rows(0).Item( _
                "ProjectDescription")
            txtSequenceNumber.Text = _
                objDataSet.Tables("Project").Rows(0).Item("Sequenc eNumber")
            txtProjectUpdateDate.Text = _
                objDataSet.Tables("Project").Rows(0).Item("LastUpd ateDate")
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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



All times are GMT -4. The time now is 07:23 PM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.