471,321 Members | 1,810 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,321 software developers and data experts.

Access method in a form from the other form

Hi,

I have a public void method declared in a form and I wish to access it from
the form in windows application made in vs 2005. How can I achieve this

THanks
Jan 1 '06 #1
1 1217
Vivek <vi****@xtra.co.nz> wrote:
I have a public void method declared in a form and I wish to access it from
the form in windows application made in vs 2005. How can I achieve this


Same as you would with a method in any other kind of class - you need a
reference to an instance of the other form, and then you call the
method on that instance.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Jan 1 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

49 posts views Thread by Yannick Turgeon | last post: by
29 posts views Thread by Patrick | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.