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()
    lblMessages.Caption = "Operation canceled"
    Set op = Nothing
End Sub

Private Sub cmdRun_Click()
    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

Edited by pritaeas: Added markdown

5 Years
Discussion Span
Last Post by arorastat3456

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?

Edited by happygeek: spam deleted

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.