I have two forms: Form1 and Form2.
I have a button on Form1, but eventually move to form 2 where I end up in a looping structure that I may want to break out of. One way to break out of it would be to respond to the button click event on Form1. How do I access an event from Form1 from the vantage point of Form2.
I was thinking on Form2 I would declare
Private WithEvents frm1 as New Form1, and then be able to access the button click of Button1 on Form1 in that manner, but it doesn't appear to be the case; I don't pull up the button name from frm1 which is present on Form1.
Thanks
I have a button on Form1, but eventually move to form 2 where I end up in a looping structure that I may want to break out of. One way to break out of it would be to respond to the button click event on Form1. How do I access an event from Form1 from the vantage point of Form2.
I was thinking on Form2 I would declare
Private WithEvents frm1 as New Form1, and then be able to access the button click of Button1 on Form1 in that manner, but it doesn't appear to be the case; I don't pull up the button name from frm1 which is present on Form1.
Thanks