wTab.cs
using System; using System.Drawing; using System.Windows.Forms; public class WTab : WCtrl { TabControl tab; public WTab(int fontSize) { ctrl = tab = new TabControl(); if( fontSize > 0 ) { SetFontSize(fontSize); } anchorAll(); dockFill(); } public WTab() : this(0) {} public void AddPage(string text, Control ctl) { TabPage page = new TabPage(); page.Text = text; page.Padding = new Padding(10); page.Controls.Add(ctl); tab.Controls.Add(page); } }
댓글 없음:
댓글 쓰기