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

Recommended Answers

All 2 Replies

I need to convert a project from VB6 to VB.net. I downloaded Microsoft's Visual Studio 2010 Professional, which allegedly has a converter that would do that job. But, I can't find the converter anywhere. Does anyone know where I could find it?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.