问题
I'm writing a program that has two main functions. Each of the functions will have a different user interface, on a separate Panel, but only one will be visible at a time. But, how do I switch between them?
回答1:
Look at the visible property of the Panel(s)
Panel1.Visible = True
Panel2.Visible = False
回答2:
You can set the panels' Visible
properties to show one and hide the other.
来源:https://stackoverflow.com/questions/6254308/windows-forms-switch-between-panels