|
-
Jun 25th, 2002, 02:30 PM
#1
Thread Starter
Hyperactive Member
Remembering custom colors with common dialog?
How can I get the Common Dialog control to remember custom colors that my user has defined?
And I, for one, welcome our new insect overlords. I'd like to remind them as a trusted TV personality, I can be helpful in rounding up others to toil in their underground sugar caves.
-
Jun 25th, 2002, 07:53 PM
#2
PowerPoster
After the user selects a color save it to the registry. Then read the registry when the commondialog is loaded next time:
VB Code:
Sub GetColor
Dim iColor As Long
iColor = GetSetting(App.Title,"Colors","Hair color",vbBlack)
CommonDialog.Color = iColor
CommonDialog.ShowColor
SaveSetting (App.Title, "Colors", "Hair color", CommonDialog.Color
-
Jun 25th, 2002, 08:11 PM
#3
PowerPoster
Well
You could achieve the same with a textfile...
Question: If using Registry, and not Admin on system in say NT or Win2000, will application crap out on you?
Last edited by James Stanich; Jun 25th, 2002 at 08:14 PM.
Remaining quiet down here !!!
BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....
-
Jun 25th, 2002, 08:13 PM
#4
PowerPoster
Re: Well
Originally posted by James Stanich
Question: If using Registry, and not Admin on system in say NT or Win2000, will application crap out on you?
No. All my apps use the registry and many are on NT and 2000 being used by people without admin privileges. It's never been a problem.
-
Jun 25th, 2002, 08:20 PM
#5
PowerPoster
Well
Thats good to know. Someone else said it wouldn't make a difference, but it's always good to get a second opinion.
Remaining quiet down here !!!
BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....
-
Jun 25th, 2002, 08:30 PM
#6
PowerPoster
Re: Well
Originally posted by James Stanich
You could achieve the same with a textfile...
Question: If using Registry, and not Admin on system in say NT or Win2000, will application crap out on you?
It will only crap out on you if the admin specifically set it to not allow any registry access. My teacher did that last semester, but then none of the regular programs that we used would work because they couldn't write to the registry. He learned that he was just gonna have to let us have access to the registry and just disable regedit.
-
Jun 25th, 2002, 08:33 PM
#7
Thread Starter
Hyperactive Member
Okay, I know how to save which color my user has chosen (I do use registry), but the thing is he (my boss btw ) wants to be able to define a set of custom colors in the dialogue, and then the next time he loads the program, have all of his custom colors there. Is there a way to do it by API or something?
And I, for one, welcome our new insect overlords. I'd like to remind them as a trusted TV personality, I can be helpful in rounding up others to toil in their underground sugar caves.
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
|