Images in vb.net
Page 1 of 17 Replies - 1003 Views - Last Post: 01 January 2011 - 08:29 PM
#1
Images in vb.net
Posted 01 January 2011 - 07:14 PM
Replies To: Images in vb.net
#2
Re: Images in vb.net
Posted 01 January 2011 - 07:26 PM
#3
Re: Images in vb.net
Posted 01 January 2011 - 07:31 PM
hawkvalley1, on 01 January 2011 - 06:26 PM, said:
hawkvalley1, on 01 January 2011 - 06:26 PM, said:
I've loaded them into a list on my resources and I ahve the timer that si set to 200 milli-second and I have the timer property set to enable but it is only advancing once and how do I add a description to the image
#4
Re: Images in vb.net
Posted 01 January 2011 - 07:42 PM
#5
Re: Images in vb.net
Posted 01 January 2011 - 08:04 PM
hawkvalley1, on 01 January 2011 - 06:26 PM, said:
hawkvalley1, on 01 January 2011 - 06:42 PM, said:
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tmrSpeed.Tick
Dim intCounter As Integer
Select Case intCounter
Case 0
Me.picChicagoBears.Image = My.Resources.Brian_urlacker
Case 1
Me.picChicagoBears.Image = My.Resources.Jay_Cutler
Case 2
Me.picChicagoBears.Image = My.Resources.Devin_hester_again
Case 3
Me.picChicagoBears.Image = My.Resources.Devin_Hester
Case 4
Me.picChicagoBears.Image = My.Resources.Symbol
intCounter += 1
If intCounter = 5 Then ' sets intCounter back to 0
intCounter = 0
End If
End Select
End Sub
This post has been edited by macosxnerd101: 01 January 2011 - 08:10 PM
Reason for edit:: Please use code tags
#6
Re: Images in vb.net
Posted 01 January 2011 - 08:09 PM
#7
Re: Images in vb.net
Posted 01 January 2011 - 08:24 PM
#8
Re: Images in vb.net
Posted 01 January 2011 - 08:29 PM
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tmrSpeed.Tick
Dim intCounter As Integer
Select Case intCounter
Case 0
Me.picChicagoBears.Image = My.Resources.Brian_urlacker
Case 1
Me.picChicagoBears.Image = My.Resources.Jay_Cutler
Case 2
Me.picChicagoBears.Image = My.Resources.Devin_hester_again
Case 3
Me.picChicagoBears.Image = My.Resources.Devin_Hester
Case 4
Me.picChicagoBears.Image = My.Resources.Symbol
'it was here and if intCounter was not 4 you could not reset the variable
End Select
'this part is now out of the Select Case
intCounter += 1
If intCounter = 5 Then ' sets intCounter back to 0
intCounter = 0
End If
End Sub
This post has been edited by hawkvalley1: 01 January 2011 - 08:30 PM
|
|

New Topic/Question
Reply




MultiQuote



|