1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
| Imports EIDNative
Public Class Form1
Dim Reid As EIDNative.EIDCard = New EIDNative.EIDCard
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Dim readers As String() = EIDNative.EIDCard.ListReaders
'Ajout des lecteur dans un combobox
ComboBox1.Items.AddRange(readers)
Reid.InitReader(True, ComboBox1.SelectedIndex)
'Lecteur par defaut
ComboBox1.SelectedIndex = 0
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Reid.InitReader(True)
Reid.SelectReader(ComboBox1.SelectedIndex)
Dim Montexte As String = Nothing
Montexte &= Reid.Identity.FirstName1
Montexte &= Reid.Address.Street
Montexte &= Reid.Address.Zip
Montexte &= Reid.Address.Municipality
MsgBox(Montexte)
End Sub |
Partager