|
-
Jan 15th, 2009, 10:38 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] [2005] Color dialog -- show current color?
I know that with some of the programs I use, when you click on an item to change it's color, the color dialog will actually show the current color and it's rgb value.
I'd like to do that in my application but can't find the answer on how you do it.
To change the backcolor on a textbox, the user double clicks the box and it shows the color dialog.
I think I have all the properties set right -- fully open to show custom colors etc.
BUT, it doesn't show the current color.
They all have 0 0 0 rgb.
THANKS for the help.
-
Jan 15th, 2009, 10:46 AM
#2
Re: [2005] Color dialog -- show current color?
Hi,
Did you tryed this;
vb Code:
TextBox1.Backcolor = ColorDialog1.Color
Wkr,
sparrow1
-
Jan 15th, 2009, 10:52 AM
#3
Thread Starter
Fanatic Member
Re: [2005] Color dialog -- show current color?
I'm not having a problem with the chosen dialog color.
What I mean is, AFTER it has a color in it.
Let's say I go back and double click the textbox to perhaps change the color.
I've seen some programs (maybe they were graphics -- can't remember) where
once you bring up the color dialog, it will actually show you the value of the current color in RGB.
That's what I want to achieve.
-
Jan 15th, 2009, 11:00 AM
#4
Thread Starter
Fanatic Member
Re: [2005] Color dialog -- show current color?
Or maybe what you're saying is that part of my IF routine with the box, I should make the color dialog color the textbox color?
so it would be the reverse?
colordialog1.color = textbox1.color
I'll try it.
-
Jan 15th, 2009, 11:16 AM
#5
Re: [2005] Color dialog -- show current color?
- Coding Examples:
- Features:
- Online Games:
- Compiled Games:
-
Jan 15th, 2009, 11:20 AM
#6
Thread Starter
Fanatic Member
Re: [2005] Color dialog -- show current color?
Yeah, that did it.
But should be put in front of the color dialog IF routine. duh.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|