C
Cerebrus99
Hi all,
The Click event handler of a button control can be invoked using the
Button.PerformClick method. But I have a Picturebox, whose click event
handler I want to invoke. RaiseEvent doesn't seem to apply in this case. I
could set up a Custom method and call that method instead, but it would
require some recoding, so I was wondering if the Event can be raised
directly. (I vaguely recall a way to do this, but it's evading me right
now!)
Private Sub PicBox_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles PicBox.Click
'My code here.
End Sub
How do I call this method, or raise the Click event for the PictureBox ?
Thanks in advance,
Regards,
Cerebrus.
The Click event handler of a button control can be invoked using the
Button.PerformClick method. But I have a Picturebox, whose click event
handler I want to invoke. RaiseEvent doesn't seem to apply in this case. I
could set up a Custom method and call that method instead, but it would
require some recoding, so I was wondering if the Event can be raised
directly. (I vaguely recall a way to do this, but it's evading me right
now!)
Private Sub PicBox_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles PicBox.Click
'My code here.
End Sub
How do I call this method, or raise the Click event for the PictureBox ?
Thanks in advance,
Regards,
Cerebrus.