I would like to hide another panel from another form when I click

From frmMain:

frmSearch Search = new frmSearch();
Search.Show();

From frmSearch:
I would like to view Panel2 and not Panel1

Thank you!

Where are the panels and where do you want to access them from?

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.