Clicking of radio button should make a section visible

Joined
Dec 23, 2009
Messages
4
Reaction score
0
I have two section in my GUI page..In bottom section I have 2 radio button.

When i click one radiobutton,some data gets displayed in the same bottom section of page.

public partial class ProdStatus : SmartPart

{

public ProdStatus()

{

InitializeComponent();

radProd.CheckedChanged += new EventHandler(ActionProd_CheckedChanged);

radNonProd.CheckedChanged += new EventHandler(ActionProd_CheckedChanged);

radProd.Checked = true;

}

void ActionProd_CheckedChanged(object sender, EventArgs e)

{

if (radProd.Checked)

{

prodstatusPart.Visible = true;

nonProdStatusPart.Visible = false;

}

else if (radNonProdStatus.Checked)

{

prodstatusPart.Visible = false;

nonProdStatusPart.Visible = true;


}


}


}


designer.cs

this.splitContainer2.Panel2.Controls.Add(this.prodstatusPart);

this.splitContainer2.Panel2.Controls.Add(this.nonProdStatusPart);

this.splitContainer2.Size = new System.Drawing.Size(1128, 702);

this.splitContainer2.SplitterDistance = 82;

this.splitContainer2.TabIndex = 0;


This whole thing is appearing in bottom section of my GUI page.I cannot include the top section in the panel of splitcontainer of bottom section

My question is that,when i click radiobutton,some thing(Say user name ,class is Test.cs) should be visible in the top section of the GUI page(top section is independent).

If am using Test.visible in

if (radProdStatus.Checked)

{Test.visible =true;

}

It is not working since top section of GUI page is independent.Its not included in the panel of bottom section



How could perform the task?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top