public EditArea(MainForm mainForm) { InitializeComponent(); this.MainForm = mainForm; this.SetStyle( ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint | ControlStyles.DoubleBuffer, true); Bricks = new Bitmap[4000]; BricksFade = new Bitmap[6000]; Tool = new ToolPen(this) { PenID = 9 }; Frames = new List <Frame>(); VerticalScroll.SmallChange = 8; HorizontalScroll.SmallChange = 8; Timer scrollTimer = new Timer() { Interval = 15 }; scrollTimer.Tick += scrollTimer_Tick; scrollTimer.Start(); this.AllowDrop = true; this.DragEnter += EditArea_DragEnter; this.DragDrop += EditArea_DragDrop; this.Visible = true; }
public EditArea(MainForm mainForm) { InitializeComponent(); this.MainForm = mainForm; this.SetStyle( ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint | ControlStyles.DoubleBuffer, true); Bricks = new Bitmap[3000]; BricksFade = new Bitmap[3000]; Tool = new ToolPen(this); Tool.PenID = 9; Frames = new List <Frame>(); VerticalScroll.SmallChange = 8; HorizontalScroll.SmallChange = 8; System.Windows.Forms.Timer scrollTimer = new System.Windows.Forms.Timer(); scrollTimer.Interval = 15; scrollTimer.Tick += new EventHandler(scrollTimer_Tick); scrollTimer.Start(); this.AllowDrop = true; this.DragEnter += EditArea_DragEnter; this.DragDrop += EditArea_DragDrop; //this.Focus(); this.Visible = true; }