コード例 #1
0
ファイル: MainForm.cs プロジェクト: AnandDhanalakota/Vin-Pro
        private void CreateUserControls()
        {
            SetStyle(ControlStyles.UserPaint, true);
            SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            SetStyle(ControlStyles.DoubleBuffer, true);

            allFilesUC  = new AllFilesUserControl();
            documentsUC = new DocumentsUserControl();
            videoUC     = new VideoUserControl();
            pictureUC   = new PicturesUserControl();
            emailUC     = new EmailUserControl();
            audioUC     = new AudioUserControl();
            // settingsUC = new SettingsUserControl();

            allFilesUC.Location                  =
                documentsUC.Location             =
                    audioUC.Location             =
                        videoUC.Location         =
                            pictureUC.Location   =
                                emailUC.Location =
                                    //settingsUC.Location =
                                    new Point(1, 80);

            //documentsUC.Anchor =
            //audioUC.Anchor =
            //videoUC.Anchor =
            //pictureUC.Anchor =
            //emailUC.Anchor =
            //settingsUC.Anchor = AnchorStyles.Left | AnchorStyles.Right;
        }
コード例 #2
0
        private void CreateUserControls()
        {
            SetStyle(ControlStyles.UserPaint, true);
            SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            SetStyle(ControlStyles.DoubleBuffer, true);

            allFilesUC = new AllFilesUserControl();
            documentsUC = new DocumentsUserControl();
            videoUC = new VideoUserControl();
            pictureUC = new PicturesUserControl();
            emailUC = new EmailUserControl();
            audioUC = new AudioUserControl();
            // settingsUC = new SettingsUserControl();

            allFilesUC.Location =
            documentsUC.Location =
            audioUC.Location =
            videoUC.Location =
            pictureUC.Location =
            emailUC.Location =
                //settingsUC.Location =
            new Point(1, 80);

            //documentsUC.Anchor =
            //audioUC.Anchor =
            //videoUC.Anchor =
            //pictureUC.Anchor =
            //emailUC.Anchor =
            //settingsUC.Anchor = AnchorStyles.Left | AnchorStyles.Right;
        }