i need some help... please help me convert this code into vb .net im using a device w/c is digital persona fingerprint scanner, the code works but it does not show any scanned image of the fingers in vb .net
Private Sub cmdCancel_Click()
op.Cancel
lblMessages.Caption = "Operation canceled"
Set op = Nothing
End Sub
Private Sub cmdRun_Click()
op.Run
lblMessages.Caption = "Put your finger on the sensor"
picSample.Picture = Nothing
lblSampleID.Caption = ""
lblEvents.Caption = ""
End Sub
Private Sub Form_Load()
Set op = New FPGetSample
End Sub
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
Set op = Nothing
End Sub
Private Sub op_DevConnected()
lblEvents.Caption = "Device connected"
End Sub
Private Sub op_DevDisconnected()
lblEvents.Caption = "Device disconnected"
End Sub
Private Sub op_Done(ByVal pSample As Object)
lblEvents.Caption = "Done"
lblSampleID.Caption = pSample.InstanceID
pSample.PictureOrientation = Or_Portrait
pSample.PictureWidth = picSample.Width / Screen.TwipsPerPixelX
pSample.PictureHeight = picSample.Height / Screen.TwipsPerPixelY
picSample.Picture = pSample.Picture
End Sub
TwipsPerPixelX is not compatible in vb.net