Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

How to pass click events between two forms

$
0
0

Hi,

i have 2 forms opened simultaneously. Form1 has a richtextbox, while form2 has some buttons.

my aim is to open a file in Form1 using data from the button click events in form2. i can pass the relevant data to open the files in variables. but i am at a loss as to how to recognize whether a click event as occurred for a particular button in form2, so that the relevant data can be passed to form1.

And, i am using c#.

best regards,

Tarak



Viewing all articles
Browse latest Browse all 12583

Trending Articles