Results 1 to 6 of 6
  1. #1
    Shark23's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Kansas
    Posts
    424
    Reputation
    10
    Thanks
    55
    My Mood
    Cool

    Question [Help]Form Background Color[Solved]

    Hey guys,

    I'm trying to change the form color in the coding. When I use the
    Code:
    frmMain.Backcolor.ColorRed
    command it has an error telling me that I need to use the
    Code:
    Me.
    command. When I use that, it says it cannot instance itself in the code. Is there a way I can do this or should I just put a panel covering the form and recolor that?

  2. #2
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    [php]
    Me.BackColor = Color.red
    [/php]


     


     


     



    The Most complete application MPGH will ever offer - 68%




  3. #3
    zmansquared's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    Kickin it at Microsoft
    Posts
    2,086
    Reputation
    36
    Thanks
    221
    My Mood
    Cheerful
    Also quite helpful

    Edit: how would you create it so that A. it would read a color diaglor box then change the background or B. when user types "blue" into textbox 3 it changes the back ground.

    I like A better, any ideas nextgen or anyone
    Last edited by NextGen1; 03-08-2010 at 10:22 PM.
    Need Help With Coding or Something??? MSN me
    zmansquared@hotmail.com


    I am the one and only Microsoft Fag!!!

    Quote:
    Originally Posted by Arhk
    All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
    ~


    Take this Pic everyone!



    next-

  4. #4
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    [php]
    Protected Sub button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
    Dim Bcolor As New ColorDialog()
    Bcolor.ShowDialog()
    me.BackColor = Bcolor.Color
    End Sub
    [/php]

    Hope this helps

    Added to UI snippets in Snippets Vault




     


     


     



    The Most complete application MPGH will ever offer - 68%




  5. The Following User Says Thank You to NextGen1 For This Useful Post:

    zmansquared (03-08-2010)

  6. #5
    zmansquared's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    Kickin it at Microsoft
    Posts
    2,086
    Reputation
    36
    Thanks
    221
    My Mood
    Cheerful
    It works. you rock once again. LOL
    Need Help With Coding or Something??? MSN me
    zmansquared@hotmail.com


    I am the one and only Microsoft Fag!!!

    Quote:
    Originally Posted by Arhk
    All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
    ~


    Take this Pic everyone!



    next-

  7. #6
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    Not a problem


     


     


     



    The Most complete application MPGH will ever offer - 68%




Similar Threads

  1. [Help]Portions of Screen Flash Diff. Colors[Solved
    By Balls Out in forum Battlefield Bad Company 2 (BFBC2) Hacks
    Replies: 7
    Last Post: 08-12-2010, 08:51 AM
  2. [Help]PopUp Form Center Screen[Solved]
    By tremaster in forum Visual Basic Programming
    Replies: 15
    Last Post: 05-15-2010, 11:31 AM
  3. [Help]Change Txt Colors[Solved]
    By ppl2pass in forum Visual Basic Programming
    Replies: 4
    Last Post: 05-10-2010, 02:43 AM
  4. [help]background worker[solved]
    By ppl2pass in forum Visual Basic Programming
    Replies: 2
    Last Post: 04-25-2010, 09:03 AM
  5. [help]Convert String to Color[Solved]
    By mnpeepno2 in forum Visual Basic Programming
    Replies: 10
    Last Post: 04-02-2010, 01:08 PM