on vb6, screen saver lock the code when run

User avatar
sal21
PlatinumLounger
Posts: 4353
Joined: 26 Apr 2010, 17:36

on vb6, screen saver lock the code when run

Post by sal21 »

I loop a recordset, with a while not ecc... are approx 23.xxx

The code run until the screen server appear, the continue to run, when screen server is unlocked!!!!

User avatar
HansV
Administrator
Posts: 78446
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: on vb6, screen saver lock the code when run

Post by HansV »

See disable screen saver vb6. I haven't tested whether it works in recent versions of Windows.
Best wishes,
Hans

User avatar
sal21
PlatinumLounger
Posts: 4353
Joined: 26 Apr 2010, 17:36

Re: on vb6, screen saver lock the code when run

Post by sal21 »

HansV wrote:
12 Feb 2021, 19:19
See disable screen saver vb6. I haven't tested whether it works in recent versions of Windows.
i have see, but dont undertsand to use the code to activate/deactivate, sorry.

User avatar
HansV
Administrator
Posts: 78446
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: on vb6, screen saver lock the code when run

Post by HansV »

Copy the code into a standard module.
To deactivate the screensaver, use

ScreenSaver False

To activate the screensaver, use

ScreenSaver True
Best wishes,
Hans

User avatar
sal21
PlatinumLounger
Posts: 4353
Joined: 26 Apr 2010, 17:36

Re: on vb6, screen saver lock the code when run

Post by sal21 »

HansV wrote:
13 Feb 2021, 07:27
Copy the code into a standard module.
To deactivate the screensaver, use

ScreenSaver False

To activate the screensaver, use

ScreenSaver True
tks, i'm stupid, so simple:-)