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?

>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;}
 }
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.