By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,419 Members | 1,446 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,419 IT Pros & Developers. It's quick & easy.

Call a procedure from one form to another

P: n/a
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

Nov 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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.

"Ivan Sammut" <sa*****@hotmail.com> wrote in message
news:eH**************@tk2msftngp13.phx.gbl...
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

Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.