Windows Shell Explorer Replacement

AgentSmithers

Member
Joined
Apr 15, 2008
Messages
5
Programming Experience
3-5
I made a Custom Shell for Windows XP and when I use Screen.Length it always returns "1" no matter what but when I run the applaction again or do a Application.Restart it reads it Correct? Why is it on LOAD .Net always See's "1" as Screen.Length instead of the Real amount like "2" or "3"?

Hoply you guys know a soultion.

Thanks!
 
Not able to reproduce that, Screen.AllScreens.Length returns correct number on app start also.
 
Thankyou so much for responding back, did you replace the Shellkey in your registry?

LM\Software\Microsoft\Windows NT\Current Version\WinLogon\ "SHELL" APP.Path

then give your computer a restart, make sure u can put it back to Explorer.exe afterwards


But when my app is the replacement of Explorer it returns the Wrong value, when I run a Application.Restart afterwards, it then returns the correct value. Could it be that The drivers for the 2nd video card havent finished loading?

Im on framework 2.0 I belive 3.5 gave me the same issue.
 
Right now im using
Declare Function GetSystemMetrics Lib "User32" (ByVal Pram As Int16) As Int16

and it returns the correct value at runtime but Screen class dose not, Anyway I can force Screen Class to update its Array of Values? I think that Should do it. And on another note, It apears windows Welcome screen disables the 2nd Dual Monitor as its loading my program, and this is where the issue is I belive, If I Sleep my program it pauses Windows as well, Anyway I can get around any of these problems?
 
Back
Top