Results 1 to 2 of 2

Thread: commondialog

  1. #1

    Thread Starter
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    I am making a program and I want to set the default color in the CommonDialog1.ShowColor event.

    Anyone know how? If so please tell me.

    Thanks,

  2. #2
    Lively Member
    Join Date
    Jul 2000
    Posts
    94
    You need to set the common dialog flags first and then set the color property like this:
    Code:
    Private Sub Form_Load()
    CommonDialog1.Flags = cdlCCRGBInit
    End Sub
    
    Private Sub Command1_Click()
    CommonDialog1.Color = Label1.BackColor
    CommonDialog1.ShowColor
    Label1.BackColor = CommonDialog1.Color
    End Sub

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