camps22 Posted April 28, 2010 Posted April 28, 2010 (edited) Re: VB.NET --> Screen Resolution Change Example Complete! Split from http://www.xtremedotnettalk.com/showthread.php?t=80165. it works like a charm for me in 8 different pcs, wonderful code, as we say in my country of origin, "¡te vaciaste!" ("you emptied yourself!") however one pc, at home, HP Pavilion Elite DT 2.50GHz, 1 Terabyte, windows 7, lresult = -2, change failed, why? might it be a authorization issue? how can i grant permission to change resolution? thank you. Edited April 28, 2010 by snarfblam Quote
Leaders snarfblam Posted April 28, 2010 Leaders Posted April 28, 2010 Re: VB.NET --> Screen Resolution Change Example Complete! The documentation from MSDN explains the parameters and, more importantly, the return value. The -2 is DISP_CHANGE_BADMODE (from http://www.mrexcel.com/forum/showthread.php?t=10616 via google). MSDN states that this return value indicates: An invalid set of flags was passed in. Quote [sIGPIC]e[/sIGPIC]
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.