Home > other >  Cskin shadow
Cskin shadow

Time:10-12

If form inheritance CCWin CCSkinMain, reference to the space in the cskin tabcontrol paging display form, the form shown in tabpage will appear problem, if the child window will appear after not maximize or mobile shadow
Code:
Public partial class Test: CCWin CCSkinMain
{
The public Test ()
{
InitializeComponent ();
}

Private void toolStripLabel1_Click (object sender, EventArgs e)
{
Bool isExist=false;
Foreach (TabPage page in skinTabControl1. TabPages)
{
//determine whether there is this page
If (page. The Name=="Retail")
{
Enclosing skinTabControl1. SelectedTab=page;
IsExist=true;
break;
}
}
If (isExist==false)
{//to create a new tabpage
TabPage Retail=new TabPage ();
Retail. Name="Retail";
Retail. Text="test";
//instantiate a form
A formretail=new A ();
//set the form as a top
Formretail. TopLevel=false;
//to add form tabpage
Retail. Controls. The Add (formretail);
//to add tabpage tabcontrol
SkinTabControl1. TabPages. Add (Retail);
Formretail. The Show ();
//display the current tabpage
Enclosing skinTabControl1. SelectedTab=Retail;
}
}
}

Public partial class A: CCWin. CCSkinMain
{
The public (A)
{
InitializeComponent ();
}
}

CodePudding user response:

Since is displayed in the form within the shadows won't the
Close the Shadow can be set to False on hand project same problem effective measurement
  • Related