private void qc(object sender, EventArgs e) { a = Width; b = Height; Graphics g = this.CreateGraphics(); c = new GrapchHelper(g); c.Draw(b, a); g.Dispose(); c.Dispose(); }
private void l(object sender, EventArgs e) { a = Width; b = Height; Graphics g = Graphics.FromHwnd(Handle); c = new GrapchHelper(g); c.Draw(b, a); g.Dispose(); c.Dispose(); foreach (Control item in Controls) { item.Width = Width / 4; item.Height = Height - 100; } }
public PluginWindow() { InitializeComponent(); using (g = this.CreateGraphics()) { Global.env.Set(g); } a = Width; b = Height; Graphics gq = this.CreateGraphics(); c = new GrapchHelper(gq); c.Draw(b, a); g.Dispose(); c.Dispose(); }
protected override void OnSizeChanged(EventArgs e) { base.OnSizeChanged(e); a = Width; b = Height; Graphics g = Graphics.FromHwnd(Handle); c = new GrapchHelper(g); c.Draw(b, a); g.Dispose(); c.Dispose(); foreach (Control item in Controls) { if (item != this) { item.Anchor = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top; } } }