Hello
I have a project and a simple definition is that I have 2 forms (screen1 and screen2) these each have a picture box (pictureA) on each of them.
When the mouse is pressed I want to call a global sub routine using mousedown.
This will then place a point on the picture box being used.
I only want one routine for placing the dot as it is large and complex.
How do I pass the name of the form used (screen1 or Screen2) to a global routine?
Thank you for your help
I have a project and a simple definition is that I have 2 forms (screen1 and screen2) these each have a picture box (pictureA) on each of them.
When the mouse is pressed I want to call a global sub routine using mousedown.
This will then place a point on the picture box being used.
I only want one routine for placing the dot as it is large and complex.
How do I pass the name of the form used (screen1 or Screen2) to a global routine?
Code:
Sub PictureA_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureA.MouseDown
GLOBALPictureBox1_MouseDown (????????)