Alternative codes needed

tqmd1

Well-known member
Joined
Dec 5, 2009
Messages
60
Programming Experience
Beginner
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?
 
When you already have the FocusedItem why would you get its index and look it up again?
VB.NET:
blah.Text= ListView1.FocusedItem.Text
 
Back
Top