Im am making a little game on VB .Net, and i have a problem:
I have used the MouseMove event to move a control on my form with a mouse, but I had to make separate event subs for each control on the form to be able to make the control move when my mouse is over the different controls.
The problem is that I have a large area covered by a picturebox "array" (I'm using the suggestion microsoft made concerning control array replacement in VB .Net) built from about a hundred pictureboxes I create during runtime.
Now when I try to make a mousemove sub for the array it wont work, the control which has to move doesnt move when my mouse is over the array.
The array is created artificially and doesnt have a "base" in the design mode.
This is the header of the array function:
Private Sub PictBoxArray_MouseMove(ByV
al sender As Object, ByVal e As System.Windows.Forms.Mouse
_ Handles MyBase.MouseMove
How will I be able to move the control in any mouse position on the form.
The microsoft solution regarding control arrays: