469,931 Members | 2,658 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,931 developers. It's quick & easy.

Multiple forms question

I'm trying to build an application with two Forms and to
use functions created inside the class of Form1 with
controls of Form2. Everytime I create a Form the .NET
creates a new class of that Form, which makes it
independent from other Forms.

How do I call and use functions created in Form1's class
in Form2?

PS. I do not want to have MDI. I want to have one active
Form at a time.

Thanks
Amjad
Nov 20 '05 #1
1 832
"Amjad" <an*******@discussions.microsoft.com> schrieb
How do I call and use functions created in Form1's class
in Form2?


If you want to access an object, you need a reference.

see also:
http://msdn.microsoft.com/library/en...ithObjects.asp

--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by dskillingstad | last post: by
22 posts views Thread by Matthew Louden | last post: by
2 posts views Thread by James X. Li | last post: by
reply views Thread by question | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.