Overriding the Click event

  • Thread starter Thread starter liam
  • Start date Start date
L

liam

Hi,

I am using the VbPowerPack that was released recently.
One of the controls provided is the ImageButton. On this
control the Click event has no parameters, i.e. there is
no (ByVal sender as Object, ByVal e as EventArgs) that
you would normally expect to see.

I was thinking of inheriting from the ImageButton class
and providing my own implementation of the Click() event
to provide these arguments.

Does anyone know to do this?

Thanks,

liam
 
* "liam said:
I am using the VbPowerPack that was released recently.
One of the controls provided is the ImageButton. On this
control the Click event has no parameters, i.e. there is
no (ByVal sender as Object, ByVal e as EventArgs) that
you would normally expect to see.

I was thinking of inheriting from the ImageButton class
and providing my own implementation of the Click() event
to provide these arguments.

The VB Power Pack comes with source code, so you can look at the
implementation and change the event there.
 
Back
Top