Call a procedure from one form to another

  • Thread starter Thread starter Ivan Sammut
  • Start date Start date
I

Ivan Sammut

Hi,

I have just started using c# and this might be a stupid question. I have 2
Forms (Form1 & Form2). I want to create a procedure in Form2 which I can
call from Form1 but I cannot find a way to do it. I found how to define a
variable and call it from Form1 but I cannot find a way to do the same thing
with procedures .Any idea.

Ivan
 
Forms are objects instantiated from a class and you deal with them the same
way as with any other objects (classes).

Maybe the procedure you want to call is a private or protected instead of a
public procedure?

S. L.
 
Back
Top