Hi,
In a subroutine I have:
I'm trying to read the name of the sender so that I can extract which (Picture) box has been clicked.
Entering the code above I get an error message:
Option Strict On disallows late binding.
With a breakpoint I can see that sender is a PictureBox and it's Name is 'PictureBox1'.
What am I doing wrong ?
Poppa
In a subroutine I have:
Code:
AddHandler box.Click, AddressOf Move
Code:
Public Function Move(sender As Object, e As System.EventArgs) As Boolean
Dim sn As String = sender.Name
Quote:
Option Strict On disallows late binding.
What am I doing wrong ?
Poppa