Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27554

Create A Blinking Image

$
0
0
Need help creating a blinking image with a timer for 5 secs and that image to blink for 240 patterns. This is for an experiment and will be needing the form 2 to be on a different monitor while form 1 will be on a monitor in a different room. I am pretty stuck. Any help would be much appreciated. Also, I know nothing about vb. Heh, well uh thanks!
Here is a link to the code, sorry for the noob-ness. Here is the part of the code that doesn't seem to be doing what I want.
Code:

Private Sub Timer1_Timer()
    Dim counter As Integer
    Dim delay1 As Integer
    Dim delay2 As Integer

    For counter = 1 To 240 Step 1
        If Horizontalbarshare.Visible = True Then
            For delay1 = 1 To 1000
            Next
            Horizontalbarshare.Visible = False
        Else
            Horizontalbarshare.Visible = True
        End If
    Next
End Sub

Here is the link to the full code if you want to check that out too:https://gist.github.com/anonymous/cee822b13928b2e9f08a

Viewing all articles
Browse latest Browse all 27554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>