I have this link on my windows form in C# on visual studio:
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
// Show another form.
Form2 f2 = new Form2();
f2.Show(this);
linkLabel1.LinkVisited = true;
}
I want when i press the link,the new form which will be created to be on the same window and not appeared on another window.How can i do this?
change your
.Showto.ShowDialog. This will make it a modal dialog “window”.