I am trying to add some event handlers to my picturebox object which I am creating at runtime. The compiler (Visual Studio 2005) is flagging the code and telling me that the object does not have the events I am using. The code works fine for labels, just not for this picture box. Where have I gone wrong? :(
Here is my code:
Code:
Dim ctrl_pb = New PictureBox ctrl_pb.Location = New Point(5,5)
Leave a comment: