as suggested by John Willems, I myself created my own functionality. I added Panel to the form, which I just set visible or invisible.
In the form constructor (to hide it on the first view):
public FrmLogin() { InitializeComponent(); pnlAdvanced.Visible = false; Height -= pnlAdvanced.Height; }
Then I added LinkLabel with this Clicked handler:
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { if (pnlAdvanced.Visible == false) { Height += pnlAdvanced.Height; pnlAdvanced.Visible = true; } else { Height -= pnlAdvanced.Height; pnlAdvanced.Visible = false; } }
It works fine and does not require additional code.
source share