private void MainForm_Load(object sender, EventArgs e) { GDIBuffer.Instance(ClientRectangle.Width, ClientRectangle.Height); this.SetStyle(ControlStyles.DoubleBuffer | ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint, true); Neruon_Form nf = new Neruon_Form(); nf.Show(); }
public Neruon_Form() { InitializeComponent(); Neruon_Form.nf = this; FormRect = new Rectangle( ClientRectangle.X, ClientRectangle.Y, ClientRectangle.Width, ClientRectangle.Height ); }