Пример #1
0
 private void IrregularForm_Load(object sender, EventArgs e)
 {
     if (!DesignMode)
     {
         Opacity         = 0;
         Skin            = new IrregularFormSkin(this); //创建皮肤层
         BackgroundImage = null;                        //去除控件层背景
         Skin.Show();                                   //显示皮肤层
         AnimateShow();
     }
 }
Пример #2
0
        private void IrregularForm_Load(object sender, EventArgs e)
        {
            if (!DesignMode)
            {
                Skin            = new IrregularFormSkin(this); //创建皮肤层
                BackgroundImage = null;                        //去除控件层背景
                Skin.Show();                                   //显示皮肤层

                //设置右键菜单
                if (ContextMenuStrip != null)
                {
                    Skin.ContextMenuStrip = ContextMenuStrip;
                }
            }
        }