I have c# project in which i have form and i want to access elements from that form from another class, how I can do this?
I tried Form1 f1 = new Form1();
and then f1.pictureBox
but it's not correct,
I have exception for Form1 f1 = new Form1();
saying:
An unhandled exception of type 'System.StackOverflowException' occurred in MMS-Lab1.exe