T tqmd1 Well-known member Joined Dec 5, 2009 Messages 60 Programming Experience Beginner Dec 17, 2009 #1 These codes work fine to display data from listview to textbox. TextBox1.Text = ListView1.Items.Item(ListView1.FocusedItem.Index).SubItems(0).Text Is there any alternative codes for this purpose?
These codes work fine to display data from listview to textbox. TextBox1.Text = ListView1.Items.Item(ListView1.FocusedItem.Index).SubItems(0).Text Is there any alternative codes for this purpose?
JohnH VB.NET Forum Moderator Staff member Joined Dec 17, 2005 Messages 15,800 Location Norway Programming Experience 10+ Dec 17, 2009 #2 When you already have the FocusedItem why would you get its index and look it up again? VB.NET: blah.Text= ListView1.FocusedItem.Text Upvote 0 Downvote
When you already have the FocusedItem why would you get its index and look it up again? VB.NET: blah.Text= ListView1.FocusedItem.Text