티스토리 뷰
using WeifenLuo.WinFormsUI.Docking;
namespace DockPanelSample
{
public partial class FormChild : DockContent
{
public FormChild()
{
InitializeComponent();
}
}
}
namespace DockPanelSample
{
public partial class FormChild : DockContent
{
public FormChild()
{
InitializeComponent();
}
}
}
using System;
using System.Windows.Forms;
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();
formChild1.TabText = "Child1";
formChild2.TabText = "Child2";
formChild3.TabText = "Child3";
formChild4.TabText = "Child4";
}
private void toolStripButton1_Click(object sender, EventArgs e)
{
formChild1.Show(dockPanelMain);
}
private void toolStripButton2_Click(object sender, EventArgs e)
{
formChild2.Show(dockPanelMain);
}
private void toolStripButton3_Click(object sender, EventArgs e)
{
formChild3.Show(dockPanelMain);
}
private void toolStripButton4_Click(object sender, EventArgs e)
{
formChild4.Show(dockPanelMain);
}
}
}
using System.Windows.Forms;
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();
formChild1.TabText = "Child1";
formChild2.TabText = "Child2";
formChild3.TabText = "Child3";
formChild4.TabText = "Child4";
}
private void toolStripButton1_Click(object sender, EventArgs e)
{
formChild1.Show(dockPanelMain);
}
private void toolStripButton2_Click(object sender, EventArgs e)
{
formChild2.Show(dockPanelMain);
}
private void toolStripButton3_Click(object sender, EventArgs e)
{
formChild3.Show(dockPanelMain);
}
private void toolStripButton4_Click(object sender, EventArgs e)
{
formChild4.Show(dockPanelMain);
}
}
}
'Code > C#' 카테고리의 다른 글
| [C#] Register/Unregister ActiveX Control (0) | 2009.03.15 | 
|---|---|
| [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 | 
                      공지사항
                      
                  
                
                  
                  
                    최근에 올라온 글
                    
                
                  
                  
                    최근에 달린 댓글
                    
                
                  
                  - Total
- Today
- Yesterday
                    링크
                    
                
                  
                  
                    TAG
                    
                
                  
                  - iText
- c#
- ScreenHunter
- AxWebBrowser
- Sample Code
- jre
- 애드센스숨기기
- Regular Expressions
- Service pack
- 애드센스감추기
- 유틸리티
- download.com
- Phalanger
- Rollback Rx
- .net framework
- AdSense숨기기
- tagREADYSTATE
- iTextSharp
- autohotkey
- java
- registry
- AdSense감추기
- Microsoft
- Automation
- windows
- DotNetMagic
- READYSTATE_COMPLETE
- WinAutomation
- 스크린캡쳐
| 일 | 월 | 화 | 수 | 목 | 금 | 토 | 
|---|---|---|---|---|---|---|
| 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 | 
                    글 보관함
                    
                
             DockPanelSample.zip
DockPanelSample.zip