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?
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?