Click here to Skip to main content
15,908,834 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: image loop in vb.net Pin
Alan N7-Jun-09 0:34
Alan N7-Jun-09 0:34 
AnswerRe: image loop in vb.net Pin
0x3c06-Jun-09 23:36
0x3c06-Jun-09 23:36 
QuestionRe: image loop in vb.net Pin
bapu28897-Jun-09 0:20
bapu28897-Jun-09 0:20 
AnswerRe: image loop in vb.net Pin
riced7-Jun-09 0:51
riced7-Jun-09 0:51 
GeneralRe: image loop in vb.net Pin
Henry Minute7-Jun-09 1:05
Henry Minute7-Jun-09 1:05 
GeneralRe: image loop in vb.net Pin
riced7-Jun-09 1:14
riced7-Jun-09 1:14 
GeneralRe: image loop in vb.net Pin
Henry Minute7-Jun-09 1:22
Henry Minute7-Jun-09 1:22 
GeneralRe: image loop in vb.net Pin
riced7-Jun-09 1:30
riced7-Jun-09 1:30 
Easily done - often guilty of it myself. Smile | :)
When I thought about the bounds it struck me that this is better.
Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Timer1.Tick
   Private Shared nextImage As Integer = 0
   PictureBox1.Image = MyImage(nextImage)
   nextImage = (nextImage + 1) Mod MyImage.Length
End Sub

Then you don't have to do anything if more images are added or some removed.

Regards
David R
---------------------------------------------------------------
"Every program eventually becomes rococo, and then rubble." - Alan Perlis

AnswerRe: image loop in vb.net Pin
bapu28897-Jun-09 2:29
bapu28897-Jun-09 2:29 
GeneralRe: image loop in vb.net Pin
Henry Minute7-Jun-09 4:45
Henry Minute7-Jun-09 4:45 
QuestionCommunicating over LAN in VB Net Pin
Jon11226-Jun-09 11:05
Jon11226-Jun-09 11:05 
AnswerRe: Communicating over LAN in VB Net Pin
Moreno Airoldi7-Jun-09 1:41
Moreno Airoldi7-Jun-09 1:41 
AnswerWebservice Pin
David Mujica8-Jun-09 3:29
David Mujica8-Jun-09 3:29 
AnswerRe: Communicating over LAN in VB Net Pin
Jon11229-Jun-09 10:53
Jon11229-Jun-09 10:53 
AnswerRe: Communicating over LAN in VB Net Pin
Jon112212-Jun-09 20:27
Jon112212-Jun-09 20:27 
QuestionThe problem of my form does not respond, The problem of my form does not respond [modified] Pin
pobre126-Jun-09 9:52
pobre126-Jun-09 9:52 
AnswerRe: The problem of my form does not respond, The problem of my form does not respond Pin
Dave Kreskowiak6-Jun-09 10:01
mveDave Kreskowiak6-Jun-09 10:01 
GeneralRe: The problem of my form does not respond, The problem of my form does not respond [modified] Pin
pobre126-Jun-09 10:11
pobre126-Jun-09 10:11 
GeneralRe: The problem of my form does not respond, The problem of my form does not respond Pin
Christian Graus6-Jun-09 12:53
protectorChristian Graus6-Jun-09 12:53 
QuestionVB 2008 express example Pin
A Wyatt6-Jun-09 4:28
A Wyatt6-Jun-09 4:28 
AnswerRe: VB 2008 express example Pin
Dave Kreskowiak6-Jun-09 4:48
mveDave Kreskowiak6-Jun-09 4:48 
QuestionProblem creating ForeignKey between DataTables Pin
carrigart6-Jun-09 2:50
carrigart6-Jun-09 2:50 
AnswerRe: Problem creating ForeignKey between DataTables Pin
Dave Kreskowiak6-Jun-09 4:46
mveDave Kreskowiak6-Jun-09 4:46 
GeneralRe: Problem creating ForeignKey between DataTables Pin
carrigart6-Jun-09 4:50
carrigart6-Jun-09 4:50 
GeneralRe: Problem creating ForeignKey between DataTables Pin
Henry Minute6-Jun-09 9:41
Henry Minute6-Jun-09 9:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.