471,327 Members | 2,681 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Changing text labels on a parent form?

How would I go about changing text labels on a parent form from a
child? For example Changing text labels on Form1 from Form2, and Form2
is opened from Form1? Any suggestions would be greatly appreciated.

Dec 22 '05 #1
1 1604
Opettaja wrote:
How would I go about changing text labels on a parent form from a
child? For example Changing text labels on Form1 from Form2, and Form2
is opened from Form1? Any suggestions would be greatly appreciated.


Two ways off the top of my head.

1. Passing a reference to Form2 from form1. Then make a public property
in form1 that accepts the string.
2. Have Form1 subscribe to an user defined event in Form2, and then fire
off the event whenever the label needs to change
Dec 22 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by MickG | last post: by
2 posts views Thread by Steve Barnett | last post: by
2 posts views Thread by Pascal | 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.