1. Button Example
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | using System; using System.Drawing; using System.Windows.Forms; namespace WindowsFormsApp3 { class CsButton : Button { public CsButton( String text, EventHandler handler) { this.Name = "button"; this.Text = text; //this.Size = new Size(width, height); //this.Location = new Point(x, y); if (handler != null) { this.Click += new System.EventHandler(handler); } } } } |
댓글 없음:
댓글 쓰기