Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27203

VS 2012 Passing a form name to a global subroutine.

$
0
0
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?

Code:

Sub PictureA_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureA.MouseDown
GLOBALPictureBox1_MouseDown (????????)

Thank you for your help

Viewing all articles
Browse latest Browse all 27203

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>