using System; using System.Collections.Generic; using System.Text; using System.Windows.Forms.Design; using System.Drawing; namespace _SCREEN_CAPTURE { /// /// /// internal class ToolButtonDesigner : ControlDesigner { /// /// /// /// protected override void OnPaintAdornments(System.Windows.Forms.PaintEventArgs pe) { Pen p = new Pen(Color.SteelBlue, 1) { DashStyle = System.Drawing.Drawing2D.DashStyle.Dot }; pe.Graphics.DrawRectangle(p, 0, 0, pe.ClipRectangle.Width - 1, 20); p.Dispose(); base.OnPaintAdornments(pe); } /// /// /// public override SelectionRules SelectionRules { get { return base.SelectionRules & ~SelectionRules.AllSizeable; } } } }