TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ian Atkinson
NA
3
0
Calling functions on the default form
Dec 8 2005 6:13 AM
Hi, I'm sure this is a simple question but I can't for the life of me remember how to do it! Say I have my main form of type Form1, and from that form I create another form of type Form2, how do I call public functions in Form1 from Form2? The problem is that I don't know what the instance of Form1 is called since it's created when the application starts. Normally if I create another form I set the name, for example: Form2 foo = new Form2(); foo.publicFunction(bar); However with this scenario as I say I don't know how to refer to the default form! Many thanks, Ian Atkinson
Reply
Answers (
1
)
memory
Menu Items