Results 1 to 7 of 7

Thread: form colour

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    May 2004
    Location
    england
    Posts
    598

    form colour

    Hi,

    Is there a way where I can make my forms silver ie when you change the apperance of your computer you can change that to silver.

    I want it so my forms frame will be silver, Not the back colour.

    Thanks

    Loftty

  2. #2
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246
    Erm. Correct me if I'm wrong (my PC is strange), but doesn't that happen automatically? I changed my style to "Wheat" and in VB the frame was the new "Wheat" colour...

    Phreak

    Visual Studio 6, Visual Studio.NET 2005, MASM

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    May 2004
    Location
    england
    Posts
    598
    yes you are correct.

    But how can I have it so that my form will always be silver even if they have changed the style to Wheat or kept it as default blue.

    If this is possible.

    Thanks

    Loftty

  4. #4
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171


    Has someone helped you? Then you can Rate their helpful post.

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    May 2004
    Location
    england
    Posts
    598
    Hi Thanks for the links very useful.

    Is there a chart of numbers that will show what the colours are ie I have RGB(0, 0, 0) I want to know what the diffrent numbers are for each colour.

    Just wondered if there was a chart for this or something.

    Thanks

    Loftty

  6. #6
    Frenzied Member Buzby's Avatar
    Join Date
    Jan 1999
    Location
    UK
    Posts
    1,670
    RGB(r,g,b)

    r/g/b = amount of red/green/blue in the colour


    If there was a chart it would have 16,777,216 combinations on it and wouldn't be very user friendly.


    One way to find out the RGB of a colour is to

    1. In VB, find a colour property (eg BackColor) for an item, and drop down the property box that displays all the colours.
    2. Right click on one of the "empty" colours at the bottom of the pallette and a "Define Colour" box appears.
    3. Find the colour you want and note down the RED/GREEN/BLUE values for it - you can then use these in your RGB function.
    'Buzby'
    Visual Basic Developer
    "I'm moving to Theory. Everything works there."

  7. #7
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171


    Has someone helped you? Then you can Rate their helpful post.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width