Jump to content

Listview em vb 2005


Mr_John
 Share

Recommended Posts

Eu tou a desenvolver um software para uma oficina e estou com um pequeno problema em seleccionar e copiar o item de uma coluna para uma label.

a minha listview tem estas colunas:

Código | Marca | Modelo | Matricula

    1        Opel      Clio      XX-XX-XX

    2        .......      .....      ..............

O que eu não consigo fazer é seleccionar, por exemplo a linha onde está o codigo 2, e copiar esse mesmo codigo 2 para uma label.

Como se faz???

Preciso realmente da vossa ajuda

Link to comment
Share on other sites

Podes usar um evento da ListView.

Tens, por exemplo, o MouseDoubleClick.

Depois no evento vais buscar o Item com Focus: ((ListView)sender).FocusedItem.Text

A partir daí tb tens acesso aos subItems se for preciso.

Matraquilhos para Android.

Gratuito na Play Store.

https://play.google.com/store/apps/details?id=pt.bca.matraquilhos

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.