Results 1 to 6 of 6

Thread: Color scheme

  1. #1
    Hyperactive Member
    Join Date
    Jan 02
    Posts
    332

    Color scheme

    What are the codes for the various colors? And if I want to change the form's background color by using code, how do I do it?

  2. #2
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 00
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    form.backcolor = vbwhite
    or vbred, vbblue and so on
    or you could use numbers
    the numbers are RGB values
    so you could use the RGB() function

    you give three numbers like RGB(255,0,0) 'would be red
    where the first is the amount of red, the second of green, and blue)
    0 is none 255 is the highest.
    if you need white it would be 255,255,255, black would be 0,0,0
    and grey just any the numbers that are the same 128,128,128
    Sanity is a full time job

    Puh das war harter Stoff!

  3. #3
    Hyperactive Member
    Join Date
    Jan 02
    Posts
    332
    is there any way of creating a pallette of colors to enable the user to choose from and edit text colors, and so forth?

  4. #4
    Hyperactive Member
    Join Date
    Jan 02
    Posts
    332
    is there any way of creating a pallette of colors to enable the user to choose from and edit text colors, and so forth?

  5. #5
    Lively Member
    Join Date
    Feb 02
    Posts
    69
    You could use the Choosecolor common dialog, for an example about that go to allapi.net .

  6. #6
    Lively Member jamieoboth's Avatar
    Join Date
    Oct 01
    Location
    UK
    Posts
    116
    Use the common dialog control...

    Code:
    Commondialog1.showcolor
    form1.backcolor = commondialog1.color


    Simple!
    Ich widerstehe allem - nur nicht der Versuchung

    (I can resist anything but temptation)

Posting Permissions

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