Morning guyz,I need to make reference to a form 2 on my project from form 1 and it as be seeming impossible.

/*this is the code I wrote.
form2 me=new form2();
me.groupbox1.visible=false;

*/

The broup box is always visible anytime I click,Plz help

what exactly you aim to do? only make group box invisible?

It is possible. You just need to declare groupBox1 as public. By default it is declared as private. I tried same code by the way.

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.