Advertisement
Guest User

1

a guest
Nov 14th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. public void ShowMyPicture(string str1)
  2. {
  3. pictureBox1.Refresh();
  4. pictureBox1.Load(str1);
  5. }
  6.  
  7. private void button1_Click(object sender, EventArgs e)
  8. {
  9. MyDelegate delegate2 = new MyDelegate(ShowMyPicture);
  10. foreach(string str1 in listBox1.Items)
  11. {
  12. delegate2(str1);
  13. System.Threading.Thread.Sleep(1000);
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement