Guest User

Untitled

a guest
Oct 21st, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. arr[0, 0] = new PictureBox
  2. {
  3. Location = new Point(0, 0),
  4. Size = new Size(50, 50),
  5. SizeMode = PictureBoxSizeMode.StretchImage,
  6. Image = imlHeroes.Images[1];
  7. };
  8. pnlPlayground.Controls.Add(arr[0, 0]);
  9.  
  10.  
  11. this.arr[0, 0].MouseClick += new MouseEventHandler(MyProc);
  12.  
  13. void MyProc(object sender, MouseEventArgs e)
  14. {
  15. MessageBox.Show("");
  16. }
Add Comment
Please, Sign In to add comment