Hi John,
Based on my understanding, you'd like to stop the currently running screen
saver in your WinForms application written in VB.NET. If I'm off base,
please feel free to let me know.
When the screen saver is running, is it terminated when you move the
pointer or press a key? If yes, I think you could simulate a key press in
your application to stop the currently running screen saver.
The following is a sample.
Imports System.Runtime.InteropServices
Declare Sub keybd_event Lib "User32.dll" Alias "keybd_event" (ByVal bvk As
Byte, ByVal bscan As Byte, ByVal dwflags As Integer, ByVal dwextrainfo As
Integer)
' call this API in your code to simulate a key press
keybd_event(65, 0, 0, 0)
Hope this helps.
If my suggestion doesn't apply to your scenario, please feel free to let me
know.
Sincerely,
Linda Liu
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.