Page 1 of 1

Click on listview = (action) [Help]

Posted: Mon Aug 13, 2012 5:17 pm
by CodenBoy
Hello,

I need help with this, i have a Listview with "Details" not "large icon", ok and 2 colums and what i wanna is, I have 2 coloms and 1 is "Name" and one is "Email", i want when i click on any name , it will put the email in label1.text

how? i mean when i click the name it will copy the email to label1.text

thx!!!!

Re: Click on listview = (action) [Help]

Posted: Mon Aug 13, 2012 5:26 pm
by XTechVB
you mean something like this

put this in the listview's ItemSelectionChanged event
Code: Select all
label1.Text = e.Item.SubItems(1).Text

Re: Click on listview = (action) [Help]

Posted: Mon Aug 13, 2012 5:54 pm
by CodenBoy
Thanks braw :) its simple :D