Exemplo n.º 1
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;
        }
        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;
        }