Go Back   Gaming Gutter > Non-Gaming > Programming > Source Code


Source Code - Have a source code/project files you want to post? Do so here.

» Site Navigation
» Home
» FAQ
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Advertisement
» GG Stuff

Follow us on Twitter!

Get the GG toolbar today (for firefox only)
» Recent Threads
Go to first new post [WTS] 80 Paladin + 80...
Today 10:45 PM
Last post by sweentsoon
Today 10:45 PM
0 Replies, 13 Views
Post Your Picture (Read...
10-10-2006 12:34 AM
by Ryan
Last post by Husky
Today 10:43 PM
14,195 Replies, 246,090 Views
Dear Leo, pls answer...
Today 07:17 PM
by fred
Last post by Fran
Today 10:42 PM
8 Replies, 32 Views
cutests bebeh horse you...
Yesterday 02:51 PM
Last post by Fran
Today 10:40 PM
36 Replies, 175 Views
DEAR SMOKEY
Today 12:48 AM
by fred
Last post by smokey
Today 10:39 PM
25 Replies, 133 Views
Reply
 
LinkBack Thread Tools Display Modes

 [VB.NET]Flashing Labels
Old 01-13-2009, 04:26 PM   #1 (permalink)
Full Member

Male Snarf is offline
 
Snarf's Avatar
 
Join Date: Dec 2008
Location: In a fun, dark, and warm place.
Posts: 480
GPoints: 7,567
iTrader: 0 / 0%
Snarf Is Recognizable
Rep Power: 4
[VB.NET]Flashing Labels

Well, we all know how much you want to give your applications seizure-makers, so here is the source of one I just made. First you need to make a label and call it Label1. Next make a timer and set it to Enabled and make the inteval 50 for a good seizure. Now just copy-pasta this code:
Code:
Public Class Form1
    Public Function RandomNumber(ByVal low As Int32, ByVal high As Int32) As Integer
        Static RandomNumGen As New System.Random
        Return RandomNumGen.Next(low, high + 1)
    End Function
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim color1 As String
        Dim color2 As String
        Dim color3 As String
        color1 = RandomNumber(0, 255)
        color2 = RandomNumber(0, 255)
        color3 = RandomNumber(0, 255)
    End Sub

    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        Dim color1 As String
        Dim color2 As String
        Dim color3 As String
        color1 = RandomNumber(0, 255)
        color2 = RandomNumber(0, 255)
        color3 = RandomNumber(0, 255)
        Label1.ForeColor = Color.FromArgb(color1, color2, color3)
    End Sub
End Class
And there you have it. Report any bugs, or make some improvements please.
__________________





  Reply With Quote
Reply

Bookmarks



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Powered by vBadvanced CMPS v3.1.0

All times are GMT -7. The time now is 10:46 PM.


vBulletin skin developed by: eXtremepixels
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The contents of this webpage are copyright © 2006-2008 GamingGutter.com. All Rights Reserved.

Page generated in 0.11277294 seconds (100.00% PHP - 0% MySQL) with 21 queries