factis said:
thx, did that and it works
Did what?
If you made the member field of Form2 public so that the code in Form1
can subscribe to an event in the control that field references, then
that's exactly not what Patrice suggested (even though he pointed out it
could be done).
Most likely, what you want is a new event, declared by you, in the Form2
class that is raised when the button is clicked. The event most likely
doesn't even represent a button click; rather, it's a higher-level thing
that just happens to be caused by a button click in that particular
instance.
Without a specific concise-but-complete code example, it's not possible
to provide specific advice. But you definitely should not be making any
member fields public.
Pete