Sev
Sev

Reputation: 15709

VB.NET Click Handler Error

I have the following code:

CType(epuc, PropSoftware.SimpleUIControls.GenericPaymentControl).clickEvent = New EventHandler(AddressOf BtnAccept_Click)

and the following handler

Public Sub BtnAccept_Click(ByVal sender As Object, ByVal e As EventArgs)

But when I click the button, I'm not getting any response...which means the click event is not being triggered. Any idea why?

Upvotes: 0

Views: 315

Answers (2)

Stefan
Stefan

Reputation: 11509

Use Addhandler:

AddHandler CType(epuc, PropSoftware.SimpleUIControls.GenericPaymentControl).clickEvent, AddressOf BtnAccept_Click

Upvotes: 2

Related Questions