Tak jsem to naspal takto:
AddHandler Karta(I).Click, AddressOf kliknuto
a zobrazuje se mi tato chyba: Method 'Private Sub kliknuto(sender As Object, e As System.Windows.Forms.MouseEventArgs)' does not have the same signature as delegate 'Delegate Sub EventHandler(sender As Object, e As System.EventArgs)' Vlastni proceduru Kliknoto jsem pouze prenesl z vaseho prikladu:
Private Sub kliknuto(ByVal sender As Object, ByVal e As MouseEventArgs)
' a tady můžete pracovat, např.:
sender.Image = Image.FromFile(Application.StartupPath & "\obrazky\nic.jpg")
End Sub
|