Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
0
Answer
How to write an event in c#.net using vb code(windows application)
satheesh babu
15y
5.6k
1
Reply
Hi all,
here i am giving vb code below.
Object = "{FE9DED34-E159-408E-8490-B720A5E632C7}#1.0#0"; "zkemkeeper.dll"
Begin zkemkeeperCtl.CZKEM CZKEM1
Height = 615
Left = 0
OleObjectBlob = "FormMain.frx":0096
TabIndex = 12
Top = 0
Visible = 0 'False
Width = 615
End
Begin VB.CommandButton cmdRestartDevice
Caption = "RestartDevice"
Height = 375
Left = 4080
TabIndex = 21
Top = 5040
Width = 1575
End
Private Sub cmdRestartDevice_Click()
frm2.CZKEM1.RestartDevice CInt(frm2.txtMachNum.Text)
End Sub
Private Sub CZKEM1_OnHIDNum(ByVal CardNumber As Long)
MsgBox CStr(CardNumber)
End Sub
In the above code i am getting success fully the cmdRestartDevice_Click() event.
But i am not getting CZKEM1_OnHIDNum(ByVal CardNumber As Long) this event.
Means i think(custom control) this CZKEM1 is created in the above code with begin and end.
How can we create that custom control in
c#.net
for windows application.
Please help me out...
thank you....
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
How to listen tcp/ip port value in my windows application form
Add Buttons dynamically in the datagridview windows forms