티스토리 뷰

Code/C#

[C#] DockPanel Suite Sample

Hide Code 2009. 1. 5. 14:26



using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using WeifenLuo.WinFormsUI.Docking;

namespace DockPanelSample
{
    public partial class FormChild : DockContent
    {
        public FormChild()
        {
            InitializeComponent();
        }
    }
}


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using WeifenLuo.WinFormsUI.Docking;

namespace DockPanelSample
{
    public partial class FormMain : Form
    {
        private FormChild formChild1;
        private FormChild formChild2;
        private FormChild formChild3;
        private FormChild formChild4;

        public FormMain()
        {
            InitializeComponent();
            InitializeMyComponent();
        }

        private void InitializeMyComponent()
        {
            formChild1 = new FormChild();
            formChild2 = new FormChild();
            formChild3 = new FormChild();
            formChild4 = new FormChild();
        }

        private void FormMain_Load(object sender, EventArgs e)
        {
            formChild1.Show(dockPanelMain, DockState.DockLeft);
            formChild2.Show(dockPanelMain, DockState.DockLeft);
            formChild3.Show(dockPanelMain);
            formChild4.Show(dockPanelMain);

            formChild2.DockPanel.DockLeftPortion = 0.30;
            formChild2.DockTo(formChild1.Pane, DockStyle.Bottom, 0);
        }
    }
}




'Code > C#' 카테고리의 다른 글

[C#] Detect UserControl's Closing  (0) 2009.01.07
[C#] DockPanel Suite Sample  (0) 2009.01.05
[C#] MDI Sample  (0) 2009.01.05
[C#] SqlCeDataAdapter, SqlCeCommandBuilder  (0) 2009.01.01
[C#] DataSet, Primary Key, Foreign Key Constraint  (0) 2008.12.22
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/10   »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
글 보관함