Auto Image Slide : Visual Basic Programming
The sample demonstrates how to display image slideshow in a Windows Forms application Controls Used : PictureBox Control The Windows Forms PictureBox control is used to display images in bitmap, GIF,icon, or JPEG formats. You can set the Image property to the Image you want to display, either at design time or at run time. You can pro-grammatically change the image displayed in a picture box, which is particularly useful when you use a single form to display different pieces of information. Source Code : Public Class Form1 Private r As New Random() Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load End Sub Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick Dim i As Integer = +1 PictureBox1.Image = My.Resources.ResourceManager.GetObject("Image" & r.Next(i, 8)) End Sub ...