Solved

Detecting/Changing Colors

Posted on 1998-10-25
3
151 Views
Last Modified: 2010-04-30
Hi!

I use VB5.

How can I detect how many colors the computer is using, and also change them to the desired amount, as you would in Control Panel/Display/Settings?

Thanks
0
Comment
Question by:eversoslightly
  • 2
3 Comments
 

Accepted Solution

by:
minaxi earned 10 total points
Comment Utility
U shall need to use windows API for this question. You shall need to use the API's which will get windows registry entries and use getdevicecaps API for this problem.

Happy
Searching!


0
 
LVL 1

Author Comment

by:eversoslightly
Comment Utility
Please give me the API codes to do this then!

Thanks,

Mark
0
 
LVL 1

Author Comment

by:eversoslightly
Comment Utility
Please give me the API codes to do this then!

Thanks,

Mark
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now