An object-oriented programming language developed by Microsoft that can be used in .NET.
Thanks! I'll take a look.
Have used My.Settings before, but not for this.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
In my several year old slide-show program, to avoid interruptions I have the following VB code:
'Disable screen saver and screen power-down; return True if successful
Try
'Disable display and system timeout timers:
SetThreadExecutionState(EX_STATE.ES_CONTINUOUS Or EX_STATE.ES_SYSTEM_REQUIRED Or EX_STATE.ES_DISPLAY_REQUIRED)
Return True
...
And there is a matching proc to re-enable them.
I'm wondering if there is nowadays a more graceful way, say in the My. namespace, to accomplish this; and to re-enable the timers when I'm done.
But I haven't found one. Any ideas?
Am presently using Visual Studio 2019 on Windows 10.
An object-oriented programming language developed by Microsoft that can be used in .NET.
Thanks! I'll take a look.
Have used My.Settings before, but not for this.
There really is nothing more graceful but you could wrap the current code in a custom My module.
See my Microsoft article VB.NET MySettings deep dive.