1.11M Members

Window Forms Communicating with each other?

 
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?

 
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 six months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article