Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - CJ commondialog color
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CJ commondialog color

 Post Reply Post Reply
Author
Message
Developerx View Drop Down
Groupie
Groupie


Joined: 03 March 2011
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote Developerx Quote  Post ReplyReply Direct Link To This Post Topic: CJ commondialog color
    Posted: 13 June 2012 at 7:38pm

Code for the cmdcolor button

1. note here we use same code as in the code i posted before, also the dialogstyle 0 and flags

are important, flags 2+1 are fullopen and selecting default color to avoid the black default

' HOW TO USE CJ commondialog for COLOR

Private Sub cmdcolor_Click()
Dim whataction As Long
CommonDialog1.ParentHwnd = Me.hWnd
CommonDialog1.Color = &HC0C0C0
CommonDialog1.DialogStyle = 0
CommonDialog1.Flags = 2 + 1

whataction = CommonDialog1.ShowColor
If whataction = 2 Then
Me.Caption = "Cancel..."
Else
Me.Caption = "Ready"
Frame5.BackColor = CommonDialog1.Color
End If

End Sub


Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.158 seconds.