Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - get color from the color common dialog?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

get color from the color common dialog?

 Post Reply Post Reply
Author
Message
shipwreck View Drop Down
Senior Member
Senior Member
Avatar

Joined: 18 April 2008
Location: United States
Status: Offline
Points: 308
Post Options Post Options   Thanks (0) Thanks(0)   Quote shipwreck Quote  Post ReplyReply Direct Link To This Post Topic: get color from the color common dialog?
    Posted: 07 January 2010 at 11:13pm
I recently looked into using the common dialog control included with the suite of controls.

I can make the color dialog appear, but I don't know how to implement it further.

Can anyone post the code or sample on how to use the common dialog for color more in detail?

Thanks and regards in advance!
Product: Xtreme Suite Pro (Active-X), Version 15.3.1

Platform: Windows 7 Ultimate SP1 (64Bit) & Windows XP Mode SP3 (32Bit)

Language: Visual Basic 6.0 SP6
Back to Top
shipwreck View Drop Down
Senior Member
Senior Member
Avatar

Joined: 18 April 2008
Location: United States
Status: Offline
Points: 308
Post Options Post Options   Thanks (0) Thanks(0)   Quote shipwreck Quote  Post ReplyReply Direct Link To This Post Posted: 08 January 2010 at 12:33pm
Nevermind folks, I was able to come up with the solution on my own.

Here's an example of how I used the common dialog.

First, I named the common dialog "DLG"

lets say we want to change the back color of the form.

We add a command button, name it "btnColor"
then under the click event of that button place
DLG.showcolor

Then the next line:
me.backcolor = DLG.color



I assume none of you all really know the easy way around this since there wasn't no responses but with over 10 views. But, that's what we are here for right? Learn something new everyday!
Product: Xtreme Suite Pro (Active-X), Version 15.3.1

Platform: Windows 7 Ultimate SP1 (64Bit) & Windows XP Mode SP3 (32Bit)

Language: Visual Basic 6.0 SP6
Back to Top
chrisABC View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 June 2008
Status: Offline
Points: 258
Post Options Post Options   Thanks (0) Thanks(0)   Quote chrisABC Quote  Post ReplyReply Direct Link To This Post Posted: 14 February 2010 at 4:51am
Originally posted by shipwreck shipwreck wrote:

Nevermind folks, I was able to come up with the solution on my own.

. . . . . . . . . .


I assume none of you all really know the easy way around this since there wasn't no responses but with over 10 views. But, that's what we are here for right? Learn something new everyday!


It would be good if CJ folk took all these messages and added the information to the Help files (where it should have been all the time).
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6
Back to Top
shipwreck View Drop Down
Senior Member
Senior Member
Avatar

Joined: 18 April 2008
Location: United States
Status: Offline
Points: 308
Post Options Post Options   Thanks (0) Thanks(0)   Quote shipwreck Quote  Post ReplyReply Direct Link To This Post Posted: 14 February 2010 at 5:01am
Most definitely.
I have SEVERAL different posts that have many views with no responses as well.
I guess thats how it works though. *Sighs*
Product: Xtreme Suite Pro (Active-X), Version 15.3.1

Platform: Windows 7 Ultimate SP1 (64Bit) & Windows XP Mode SP3 (32Bit)

Language: Visual Basic 6.0 SP6
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.141 seconds.