In this article, they noticed color depth should be 24-bit or less.
How can I get and set color depth of user's pc and then after closing
program restore that.
I think I need to do something like this algorithm:
1) get color depth by using registery. (in what address?)
2) if value is more than 24-bit go to next line else exit
3) tempColorDepth = RelatedRegisteryKeyValue
4) RelatedRegisteryKeyValue=24-bit
5) when program closed set RelatedRegisteryKey=tempColorDepth
Is this a good algorithm?
What if user closes the program abnormaly? (ctrl+alt+delete, restart
computer, ...)
--
Saber S.
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:uC**************@TK2MSFTNGP09.phx.gbl...
Hi,
http://msdn.microsoft.com/library/de...lStudioNET.asp
Ken
-----------------
"Saber" <saber[.AT.]oxin.ir> wrote in message
news:en**************@tk2msftngp13.phx.gbl...
Is there any site for learning creating fun user interfaces?
Is there a database on the web for downloading ornamented(!) forms?
--
Saber S.