It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Visual Basic Forum

usb relay and vb

Moderator: dafunkymunky

usb relay and vb

Postby kkoolkev on Sat Aug 07, 2010 6:09 pm

hi i need some help i have a usb relay which has come with a program and i have the source code. how do i program so that when i click the button for relay 4 which is r4 on i want it to turn on relay 4 for 5 second the turn off relay 4 then turn on relay 5 for 5 seconds then off again i know this is probably easy to do if you understand how to use vb but i know nothing about it any help would be great here is the code i have

Private Sub r4on_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles r4on.Click

r4 = 8
allr = r1 + r2 + r3 + r4 + r5 + r6 + r7 + r8
r4off.BackColor = Color.Gray
r4on.BackColor = Color.Green

End Sub
kkoolkev
 
Posts: 1
Joined: Sat Aug 07, 2010 6:02 pm

Who is online

Users browsing this forum: No registered users and 4 guests