SONU GUPTA

SONU GUPTA

  • NA
  • 40
  • 4.3k

how to create prev and next button

Mar 30 2018 6:36 AM
  1. using System;  
  2. using System.Collections.Generic;  
  3. using System.ComponentModel;  
  4. using System.Data;  
  5. using System.Drawing;  
  6. using System.Linq;  
  7. using System.Text;  
  8. using System.Threading.Tasks;  
  9. using System.Windows.Forms;  
  10. namespace WindowsFormsApplication42  
  11. {  
  12. public partial class Form1 : Form  
  13. {  
  14. public Form1()  
  15. {  
  16. InitializeComponent();  
  17. }  
  18. private void pictureBox1_Click(object sender, EventArgs e)  
  19. {  
  20. pictureBox1.Image = Properties.Resources.a;  
  21. pictureBox1.Image = Properties.Resources.b;  
  22. pictureBox1.Image = Properties.Resources.c;  
  23. pictureBox1.Image = Properties.Resources.d;  
  24. pictureBox1.Image = Properties.Resources.e;  
  25. pictureBox1.Image = Properties.Resources.f;  
  26. pictureBox1.Image = Properties.Resources.g;  
  27. pictureBox1.Image = Properties.Resources.h;  
  28. pictureBox1.Image = Properties.Resources.i;  
  29. pictureBox1.Image = Properties.Resources.j;  
  30. pictureBox1.Image = Properties.Resources.k;  
  31. pictureBox1.Image = Properties.Resources.l;  
  32. pictureBox1.Image = Properties.Resources.m;  
  33. pictureBox1.Image = Properties.Resources.n;  
  34. pictureBox1.Image = Properties.Resources.o;  
  35. pictureBox1.Image = Properties.Resources.p;  
  36. pictureBox1.Image = Properties.Resources.q;  
  37. pictureBox1.Image = Properties.Resources.r;  
  38. pictureBox1.Image = Properties.Resources.s;  
  39. pictureBox1.Image = Properties.Resources.t;  
  40. pictureBox1.Image = Properties.Resources.u;  
  41. pictureBox1.Image = Properties.Resources.v;  
  42. pictureBox1.Image = Properties.Resources.w;  
  43. pictureBox1.Image = Properties.Resources.x;  
  44. pictureBox1.Image = Properties.Resources.y;  
  45. pictureBox1.Image = Properties.Resources.z;  
  46. }  
  47. private void button1_Click(object sender, EventArgs e)  
  48. {  
  49. }  
  50. private void button2_Click(object sender, EventArgs e)  
  51. {  
  52. }  
  53. }  
  54. }  
here is code for displaying image one by one now i want to ad next and prev button how can i do that....

Answers (3)