looking for some solutions? You are welcome.

SOLVED: Show Groupbox when button is clicked or Bring GroupBox to front?

Asaf Duba:

I have 4 GroupBox's that contain various TextBox's and Buttons, I have placed the 4 GroupBox's on top of each other and created 4 buttons so that when one of the buttons is clicked the GroupBox it refers to is shown above the other. To do this I tried .Visible and .BringToFront command. But It didn't work.

private void bunifuFlatButton1_Click(object sender, EventArgs e)
{
    LOGINGROUP.Visible = true;
    LOGINGROUP1.Visible = false;
    LOGINGROUP2.Visible = false;
}

private void bunifuFlatButton2_Click(object sender, EventArgs e)
{

    LOGINGROUP1.Visible = true;
    LOGINGROUP.Visible=false;
    LOGINGROUP2.Visible = false;
}

private void bunifuFlatButton3_Click(object sender, EventArgs e)
{

    LOGINGROUP2.Visible = true;
    LOGINGROUP1.Visible = false;
    LOGINGROUP.Visible = false;

}



Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots
Share:

No comments:

Recent