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

Calling a Sub of the MainForm from a UserControl

$
0
0
Hi,
I'm using a UserControl-Collection on my Mainform.
Inside those UserControls I want a ClickEvent to call a _MouseUp Routine of the Mainform.

I was able to get it working by declaring this _MouseUp Routine as Public and caling it by
Code:

MainForm.PictureBox_MouseUp(MainForm.PictureBox, myMouseEventArg)
I do understand that that is not a porper way to do, however I'm struggeling on how to do it correctly. Could anybody give me a hint?

Viewing all articles
Browse latest Browse all 27554

Trending Articles



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