One Stop Solution for Computer Programming & Programming Languages techniques in Java, C, C plus plus, C#, asp.net, windows applications, visual studio and sql server database as well as all pc tips and tricks with computer softwares.

Image Slideshow In Windows Application using C#

Image Slideshow In Windows Application using C#

Perform given below steps to create an image slideshow in windows application using C#:

You have to :

  • Get Visual studio 2005 or Higher.
  • Get Some Images for slide show.
  • Open visual studio,
  • Click on new option in file menu,
  • Select project from sub menu,
  • Select windows application from dialog box,
  • Rename your project in menu,
  • Click Ok button.
  • Go To Solution Explorer
  • Right Click on your Solution &
  • Select Add folder option & Name your folder Images,
  • Right Click on your folder & Select Add Existing Item option,
  • Add Some Images & name them same as you've named in array declared below(Images name should be same to name of images in array).
  • Now It's Time to Add Controls to your Application,
  • Drag following controls on your new form:
    • 1 PictureBox
      • Set its hieght & width from properties.
    • 5 Buttons
      • Change Button names as follows :
        • First Image
        • Next Image
        • Play Slideshow
        • Previous Image
        • Last Image
    • 1 Timer
        • for automatic slideshow.

  • IF U CAN'T DRAG CONTROLS OR DESIGN FORM USING ABOVE METHOD JUST COPY BELOW CODE & PASTE IT ON YOUR FORM.DESIGNER.CS PAGE WHICH CAN BE FOUND IN SOLUTION EXPLORER...

    • Now Write following code under public partial form:

  • Then, paste following code on page load event:
  • Button 1 Code(for viewing 1st image)
  • Button 2 Code(for viewing next image)

  • Button 3 Code(for playing Slide Show)

  • Button 4 Code(for previous Image)
  • Button 5 Code(for Last Image)
  • Timer Tick Event Code(for slideshow)


  • Now save your project & run application by pressing F5 Key on key board.
OUTPUT SCREEN:

YOU MIGHT BE INTERESTED IN:
Thanks to all visitors........

No comments

Post a Comment

Powered by Blogger.