Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 6th, 2006, 08:39 AM
Registered User
 
Join Date: Sep 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Screensaver deactivation question

I need somebody to tell me how do I deactivate the system screensaver from within a C# program... It would be best if you show me how to do it on Pocket PC...
 
Old September 7th, 2006, 10:17 AM
2V. 2V. is offline
Authorized User
 
Join Date: Aug 2006
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

1) h-m ... try to use some of Win API functions:
SendMessage(hWndl, WM_SYSCOMMAND, SC_MONITORPOWER, MONITOR_ON);
//hWndl can be null
2) or somehow generate some Mouse or Key Event (mouse move for example)






Similar Threads
Thread Thread Starter Forum Replies Last Post
ScreenSAver project hamilton C# 1 February 28th, 2007 10:56 AM
C# screensaver deactivation LordMall C++ Programming 0 September 6th, 2006 08:37 AM
Creating a Powerpoint Screensaver edwardforgacs Pro VB 6 1 September 20th, 2004 12:05 AM
c++ question amahja56 C++ Programming 3 February 24th, 2004 02:45 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.