1,105,232 Community Members

Window Forms Communicating with each other?

Member Avatar
nko12
Newbie Poster
1 post since Apr 2010
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

I know this is probably the noobiest question you have ever heard, but is their anyway to make forms in the same project actually COMMUNICATE with each other? Using Visual Studio 2010 for C#, I can't figure out how to make each separate form be basically synchronized with the main one. For example, on the main form I got a picturebox. Well, I have a second form that is JUST a picturebox that will basically resize itself to the full size picture, set to do this when you open a file on the main window. Problem is, I can't figure out how to get the main window (Streaming File) to stream to the picturebox on the second form. How would I do this?

Member Avatar
__avd
Posting Genius (adatapost)
6,703 posts since Oct 2008
Reputation Points: 1,811 [?]
Q&As Helped to Solve: 1,272 [?]
Skill Endorsements: 61 [?]
Moderator
 
0
 

>I can't figure out how to get the main window (Streaming File) to stream to the picturebox on the second form. How would I do this?

Write a public method or a property in the second form.

public  Image Form1Image
  {
     get { return picture1.Image;}
     set { picture1.Image=value;}
 }
You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article