0

I'm trying to make a GUI application that needs flow arrows to shows the flow between 2 components, sort of like the display you see in the Toyota Prius that shows the transfer of power from the battery to the motor, etc...

Are there anything in Visual Basic Express 2008 that can remotely do something like that? Thanks

3
Contributors
2
Replies
3
Views
9 Years
Discussion Span
Last Post by J-P
0

I have never tried this, but I guess you can try adding Animated GIF's and play around with the visibility.

0

You could create an User control with multiple picture boxes. Just add a timer which controls the speed of the animation, and add some Show-Hide - code to the timers tick event...

Example:

Private CurrentFrame As Integer = 1

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) _
Handles Timer1.Tick

Select Case CurrentFrame

Case 1

PictureBox1.Show
PictureBox2.Hide
PictureBox3.Hide
PictureBox4.Hide

Case 2

PictureBox1.Hide
PictureBox2.Show
PictureBox3.Hide
PictureBox4.Hide

Case 3

PictureBox1.Hide
PictureBox2.Hide
PictureBox3.Show
PictureBox4.Hide

Case 4

PictureBox1.Hide
PictureBox2.Hide
PictureBox3.Hide
PictureBox4.Show

End Select

CurrentFrame +=1

If CurrentFrame > 8 Then
CurrentFrame = 1
End If

End Sub
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.