Guest User

Untitled

a guest
Sep 18th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. Accessing Form3.pictureBox1 out of Form1
  2. Form3.pictureBox1.Image = MyImage;
  3.  
  4. Form3 frm3 = new Form3();
  5. frm3.pictureBox1.Image = Image.FromFile("ImageName");
  6. frm3.Show();
  7.  
  8. string a;
  9.  
  10. static void Main()
  11. {
  12. Application.EnableVisualStyles();
  13. Application.SetCompatibleTextRenderingDefault(false);
  14. Application.Run(new Form1());
  15. }
  16.  
  17. static void Main()
  18. {
  19. Application.EnableVisualStyles();
  20. Application.SetCompatibleTextRenderingDefault(false);
  21.  
  22. Form1 f = new Form1();
  23. Application.Run(f);
  24. }
  25.  
  26. Form2 frm2 = new Form2();
  27. frm2.show();
  28. frm2.pictureBox1.Image = "MyImage";
Add Comment
Please, Sign In to add comment