Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Pro VB.NET 2002/2003 For advanced Visual Basic coders working .NET version 2002/2003. Beginning-level questions will be redirected to other forums, including Beginning VB.NET.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB.NET 2002/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
  #1 (permalink)  
Old January 22nd, 2005, 11:19 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Harrisburg, PA, USA.
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default Selecting a ListView item

Hello,

I may have posted this already, and if I did, I apologize to the moderators.

How do you select a list view item in a Windows Form? I'm looping through the items, check the three fields to see if they match the item's values I have, and if they match, I do ListView1.Items[i].Selected = true;

I messagebox when this occurs, and it shows OK, but the item isn't selected in the control. I have multiselect set to false, and fullrowselect set to true, if that matters.

Brian
__________________
Brian


Similar Threads
Thread Thread Starter Forum Replies Last Post
Selecting DropDownList Item yes_no ASP.NET 1.0 and 1.1 Professional 1 April 8th, 2008 08:00 AM
selecting a row in a listview control debbiecoates Pro VB Databases 0 February 26th, 2008 07:48 AM
How to get selected item from listview? try.test.abc C# 1 January 4th, 2007 02:34 AM
problem selecting listview item method Visual C++ 0 July 7th, 2006 04:06 PM
how to select an item from listview jthadathilm16 VB How-To 1 April 24th, 2006 11:33 AM





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