Pop-Up Thingie
Sidebar
>>> Magnum BBS <<<
Home
Forum
Files
Dark
Log in
Username
Password
Sidebar
Forum
Usenet
UK.COMP.HOMEBUILT
Preventing Shut Down
From
Jeff Gaines
@21:1/5 to
All
on Fri Jan 19 14:42:27 2024
Should have thought of this earlier.
New project (C# in my case) containg just thse lines:
public FormNoShutdown()
{
InitializeComponent();
this.FormClosing += new FormClosingEventHandler(FormNoShutdown_FormClosing);
}
void FormNoShutdown_FormClosing(object sender, FormClosingEventArgs e)
{
if (e.CloseReason == CloseReason.WindowsShutDown)
{
e.Cancel = true;
}
}
Leave it running and if Windows tries to shutdwon it will prevent it, and
you will get the standard screen asking what you want to do.
--
Jeff Gaines Dorset UK
The only thing necessary for evil to prevail is for good people to do or
say nothing. (Edmund Burke)
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)
Who's Online
Recent Visitors
Razorclad
Sat Feb 15 06:23:43 2025
from
Denver, Co
via
Telnet
Flatearthdisciple
Sat Feb 15 04:25:14 2025
from
Moville, Ia
via
SSH
Nelgin
Fri Feb 14 22:28:57 2025
from
Plano, Tx
via
SSH
Fred Blogs
Fri Feb 14 22:27:05 2025
from
Uk
via
SSH
Nelgin
Fri Feb 14 22:15:13 2025
from
Plano, Tx
via
SSH
Fred Blogs
Fri Feb 14 22:11:01 2025
from
Uk
via
SSH
Keyop
Fri Feb 14 22:08:26 2025
from
Huddersfield, West Yorkshire
via
SSH
Keyop
Fri Feb 14 22:07:12 2025
from
Huddersfield, West Yorkshire
via
SSH
System Info
Sysop:
Keyop
Location:
Huddersfield, West Yorkshire, UK
Users:
417
Nodes:
16 (
2
/
14
)
Uptime:
09:29:42
Calls:
8,759
Calls today:
2
Files:
13,285
Messages:
5,963,353