Created a new ID, it worked. Tried using SysInternals Autoruns to see what was causing the problem, no luck! Transferred old ID to new ID, Thanks!
http://satellite-tv-for-pc.eklicks.com/
I am using WallpaperoriginX and WallpaperoriginY in the registry key "HKEY_CURRENT_USER\Control Panel\Desktop" to reposition the desktop wallpaper. This worked for a while, now when I log in the wallpaper is centered. If I lock the computer or before I log in it's reposition again. Help...
If the process is not found, the processes array variable will have a length of 0, which causes an error in your foreach loop.
Try checking the length, if > 0 then loop.
if (processes.Length > 0) {
foreach (Process process in processes)
{process.Kill()}
}...
Thanks litton1 but I can't used that.
When I make the change to the registry, if I log off, then log back on the background color is changed. That tells me that there should be a call that I can make to change it immediately.
I don't understand why the call to SystemParametersInfo doesn't...
Thanks JurkMonkey but that is for setting the desktop background WALLPAPER, I want to change the desktop background COLOR.
I am already using that API function to change the wallpaper, which works just fine. I've tried saving the Colors\Background registry setting and running that same api...
I finally found it in the registry.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\BitBucket.
Silly me, I was searching the registry for recycler or recycle bin.
http://satellite-tv-for-pc.eklicks.com/
I finally found it in the registry.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\BitBucket.
Silly me, I was searching the registry for recycler or recycle bin.
http://satellite-tv-for-pc.eklicks.com/
you also could use chr(34).
string str = String.Format("He yelled {0}{1}{0} at the top of his voice", chr(34), intYear);
http://satellite-tv-for-pc.eklicks.com/
Back to the original MCISendString api call.
I use it all the time, you just need to make some tweaks.
First you need to change all the long values in the MCISendString to integers.
( this API function was written pre .Net (integer maps to long)
' api call used to open/close a cdrom door...
I do believe you can use Environment.GetFolderPath(
As soon as you type the '(' you should see a enum list of all the special folders.
http://satellite-tv-for-pc.eklicks.com/
Look up Microsoft.Win32.SystemEvents.
The .PowerModeChange can notify you when the system Suspend and Resume.
The .SessionEnding can notify you of system Logoff and Shutdown.
Somewhere in you code you add handlers for these events:
AddHandler Microsoft.Win32.SystemEvents.PowerModeChanged...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.