Results 1 to 3 of 3

Thread: Color Palette?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    how do I make it so that when A person clicks on a label, make the color Pallette appear, then let the person choose a color, then make that color the back color of label1?
    NXSupport - Your one-stop source for computer help

  2. #2
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    Code:
    'use the commondialog control to give user
    'the ability to change the form's backcolor
    'uses Label1 and CommonDialog1
    
    Option Explicit
    
    Private Sub Command2_Click()
    
    End Sub
    
    Private Sub Form_Load()
    'set the flag
        CommonDialog1.Flags = cdlCCRGBInit
    End Sub
    
    Private Sub Label1_Click()
    'show the color box
        CommonDialog1.ShowColor
    'accept the color selected and color form
        Label1.BackColor = CommonDialog1.Color
    End Sub
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    thanks
    NXSupport - Your one-stop source for computer help

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