Advertisement
Guest User

Untitled

a guest
Dec 6th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. {
  2. int w = ClientSize.Width;
  3. int h = w;
  4. BKE = new Button[A,A];
  5. this.ClientSize = new Size(w, w * 1005 / 1000);
  6. for (int x = 0; x < A; x++)
  7. {
  8. for (int y = 0; y < A; y++)
  9. {
  10. BKE[x, y] = new Button();
  11. BKE[x, y] = new System.Windows.Forms.Button();
  12. BKE[x, y].Location = new System.Drawing.Point(w * x/ A, h * y / A);
  13. BKE[x, y].Size = new System.Drawing.Size(w / A, h / A);
  14. BKE[x, y].Click += new System.EventHandler(this.b_Click);
  15. this.Controls.Add(BKE[x, y]);
  16. }
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement