satheesh babu

satheesh babu

  • NA
  • 128
  • 311.8k

How to write an event using c#.net in windows application

May 8 2009 7:18 AM
Hi all,

Here i have a SDK for my access card machine and i registered that dll and refering that dll in my solution. so now i can use menthods,properties,events from that sdk.

i got a demo application with that sdk but it is in Visual Basic only.

they are refering that dll like below

Object = "{FE9DED34-E159-408E-8490-B720A5E632C7}#1.0#0"; "zkemkeeper.dll"

and creating some thing(i don't know) by using below code

Begin zkemkeeperCtl.CZKEM CZKEM1
Height = 615
Left = 0
OleObjectBlob = "FormMain.frx":0096
TabIndex = 12
Top = 0
Visible = 0 'False
Width = 615
End

after this by using CZKEM1 they are writing some events like below.

Private Sub CZKEM1_OnFinger()
txtEvent.Text = "OnFinger" & Chr(13) & Chr(10) & txtEvent.Text
End Sub

Private Sub CZKEM1_OnFingerFeature(ByVal Score As Long)
txtEvent.Text = "OnFingerFeature(" & Score & ")" & Chr(13) & Chr(10) & txtEvent.Text
End Sub


Private Sub CZKEM1_OnHIDNum(ByVal CardNumber As Long)
MsgBox CStr(CardNumber)
End Sub

Private Sub CZKEM1_OnKeyPress(ByVal Key As Long)
txtEvent.Text = "OnKeyPress(" & Key & ")" & Chr(13) & Chr(10) & txtEvent.Text
End Sub

all the above code in Visual Basic only........

Now my query is i want all these events need to fire using c#.net in windows application..........


how can i do this?

thank you.......


Answers (2)