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

Recommended Answers

All 2 Replies

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

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
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.