difficult for shutdown

vb.net , .net framework , .net forum Indonesia
  • 8 years ago
    Hiiiiiiii, i've program, then i using timer for access the DB.. so if the program still running.. why i cant shutdown my pc?i should be close first the program before shutdown.. can anybody help me..
  • 8 years ago
    try to observe Form_Closing, and if request happened, disconnect from DB and shutdown Timer... then yoou can probably solve this... also if your shutdowns inside closing handler failed, you can FormClosing e.Cancel = True ...

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Engineers are all basically high-functioning autistics who have no idea how normal people do stuff.” - Cory Doctorow