티스토리 뷰
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
- AdSense감추기
- tagREADYSTATE
- Regular Expressions
- 유틸리티
- .net framework
- iTextSharp
- windows
- READYSTATE_COMPLETE
- WinAutomation
- Sample Code
- autohotkey
- c#
- jre
- iText
- download.com
- Service pack
- registry
- 스크린캡쳐
- Microsoft
- java
- Rollback Rx
- 애드센스숨기기
- 애드센스감추기
- Automation
- AxWebBrowser
- DotNetMagic
- AdSense숨기기
- ScreenHunter
- Phalanger
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함