I am using tab control with tab pages to get user input. In last before prining I have to show the user summary that is going to be printed.
Based on input there can be 2 sets of data to display. One will be replaced at a time.
I am a newbie in WinForm but in Asp.net there is a control panel, kindly gudie me is there a control that I can use for this kind of display.
I thought to use panel or groupbox but I am not aware of how to manage there location and display. I tried putting these on each other and on click try to bring requried one on front, make it visible and hide other but it does not work properly. Any advice please, HERE IS MY CODE:
private void button1_Click(object sender, EventArgs e)
{
groupBox2.Visible = false;
groupBox1.BringToFront();
groupBox1.Visible = true;
}
private void button2_Click(object sender, EventArgs e)
{
groupBox1.Visible = false;
groupBox2.BringToFront();
groupBox2.Visible = true ;
}
EDIT
I have noted the issue is when I put both group boxes on each other top one becomes a part of other. If I try to do this by panels I also have to manage all controls individually. Please guide.
I finally use report viewer to show selection because later I was going to print repots as well