Results 1 to 6 of 6
  1. #1
    CoderNever's Avatar
    Join Date
    Feb 2009
    Gender
    female
    Location
    https://mpgh.net MPGHCash: $700,458,011
    Posts
    1,198
    Reputation
    131
    Thanks
    2,236
    My Mood
    Buzzed

    [C&P] Making your form change colors!

    Add this Sub

    Code:
    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
            Dim Colors() = {"RED", "BLUE", "ORANGE", "PINK", "GREEN", "YELLOW"}
            Dim Color
            Color = CInt(Int(6 * Rnd()))
            Colorgraber = CStr(Colors(Color))
            Color = Colorgraber
            If Colorgraber = "RED" Then
                Me.BackColor = Drawing.Color.Red
            ElseIf Colorgraber = "BLUE" Then
                Me.BackColor = Drawing.Color.Blue
            ElseIf Colorgraber = "ORANGE" Then
                Me.BackColor = Drawing.Color.Orange
            ElseIf Colorgraber = "PINK" Then
                Me.BackColor = Drawing.Color.Pink
            ElseIf Colorgraber = "GREEN" Then
                Me.BackColor = Drawing.Color.Green
            ElseIf Colorgraber = "YELLOW" Then
                Me.BackColor = Drawing.Color.Yellow
            End If
    End Sub
    Now add a Timer and depending what you set the interval to will make it go slower or faster. If you need help setting more colors just ask. If you don't have fun with it.

    Last edited by CoderNever; 11-24-2009 at 09:03 PM.

  2. #2
    Pixie's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    Pixie wird wieder steigen.
    Posts
    1,884
    Reputation
    22
    Thanks
    229
    My Mood
    Fine
    So this will change automatically??
    and what is C&P??

  3. #3
    CoderNever's Avatar
    Join Date
    Feb 2009
    Gender
    female
    Location
    https://mpgh.net MPGHCash: $700,458,011
    Posts
    1,198
    Reputation
    131
    Thanks
    2,236
    My Mood
    Buzzed
    C&P = copy and paste
    and yes it will change fastly to like your ready to party! lol

  4. #4
    Pixie's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    Pixie wird wieder steigen.
    Posts
    1,884
    Reputation
    22
    Thanks
    229
    My Mood
    Fine
    Quote Originally Posted by Coder Never View Post
    C&P = copy and paste
    and yes it will change fastly to like your ready to party! lol
    Wow, this sure will blind some one

  5. #5
    CoderNever's Avatar
    Join Date
    Feb 2009
    Gender
    female
    Location
    https://mpgh.net MPGHCash: $700,458,011
    Posts
    1,198
    Reputation
    131
    Thanks
    2,236
    My Mood
    Buzzed
    Lol I would not want to be at a party with you!

    Pixiecorp : Can you turn the music down someone ears are going to get hurt!!!

  6. #6
    Stephen's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    Engine.exe
    Posts
    4,689
    Reputation
    184
    Thanks
    1,149
    My Mood
    Aggressive
    lolz........

Similar Threads

  1. How to make your form have its own cursor?
    By willrulz188 in forum Visual Basic Programming
    Replies: 7
    Last Post: 09-23-2010, 05:54 PM
  2. [Tutorial] How to change colors in DotNetBar for Windows Forms
    By Invidus in forum Visual Basic Programming
    Replies: 7
    Last Post: 02-27-2010, 11:20 PM
  3. Making a form with a transparent back color?
    By Lolland in forum Visual Basic Programming
    Replies: 3
    Last Post: 09-24-2009, 07:08 PM
  4. *DLL* [Tutorial] Make Your first DLL Interacted to a Form Project...
    By Silk[H4x] in forum Visual Basic Programming
    Replies: 14
    Last Post: 06-26-2009, 08:52 PM
  5. [Tutorial]VB2008! How To Make Digital Clock On Your Form!
    By almog6666 in forum Visual Basic Programming
    Replies: 3
    Last Post: 04-09-2009, 01:55 PM

Tags for this Thread