Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- int w = ClientSize.Width;
- int h = w;
- BKE = new Button[A,A];
- this.ClientSize = new Size(w, w * 1005 / 1000);
- for (int x = 0; x < A; x++)
- {
- for (int y = 0; y < A; y++)
- {
- BKE[x, y] = new Button();
- BKE[x, y] = new System.Windows.Forms.Button();
- BKE[x, y].Location = new System.Drawing.Point(w * x/ A, h * y / A);
- BKE[x, y].Size = new System.Drawing.Size(w / A, h / A);
- BKE[x, y].Click += new System.EventHandler(this.b_Click);
- this.Controls.Add(BKE[x, y]);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement