I have program , start when windows start. Users have to open this app and they can’t close it. When users open it, a variable in sql will be true, but I want before shutdown windows this variable will be false. How this possible? Users can’t close the app: e.Cancel = true; but I want before shutdown , variable in database will be false. thanks
do some code before shutdown windows
116 Views Asked by tara1367 At
1
There are 1 best solutions below
Related Questions in SQL
- SQL schema for a fill-in-the-blank exercise
- Hibernate: JOIN inheritance question - why the need for two left joins
- What's supposed to be the problem in this query?
- Compare fields in two tables
- How to change woocomerce or full wordpress currency with value from USD to AUD
- Dynamic query creation with Array like implementation
- SQL query to get student enrolled in this month in a course - Moodle
- SQL LAG() function returning 0 for every row despite available previous rows
- Convert C# DateTime.Ticks to Bigquery DateTime Format
- Use row values from another table to select them as columns and establish relations between them (pivot table)
- SQL: Generate combination table based on source and destination column from same table
- how to use system's environnement variables in sql script
- PHP fetchAll on JOIN
- Multitable joining in Sql
- How to display name starting from 'z' by using BETWEEN cmd only?
Related Questions in WINDOWS
- how to play a sounds in c# forms?
- Echo behaviour of Microsoft Windows Telnet Client
- Getting error while running spark-shell on my system; pyspark is running fine
- DirectX 9 With No SDK Installed - How To Translate a D3DMATRIX?
- Gradle 8.7 cannot find installed JDK 22 in IntelliJ
- 'IOException: The cloud file provider is not running', when trying to delete 'cloud' folder
- Cannot load modules/mod_dav_svn.so into server
- Issue with launching application after updating ElectronJs to version 28.0.0 on Windows and Linux
- 32-bit applications do not display some files in Windows 10
- 'bun' is not recognized as an internal or external command
- mkssecreenshotmgr taking a screenshot
- Next js installation in windows 7 os
- Can't resize a partition using Mini Tool?
- Is there any way to set a printer as default according with Active Directory Policy Security Group and PC hostname?
- Electron Printing not working on Windows (Works on Mac)
Related Questions in VARIABLES
- .bat file - How can I return the value of a variable whose name depends on another variable concatenated with a string in a batch file?
- Accessing Secret Variables in Classic Pipelines through Java app in Azure DevOps
- Does tensorflow have a way of calculating input importance for simple neural networks
- Can you define a variable in ranges in java
- How to only estimate neonatal mortality using syncmrates in Stata?
- PHP string variable to multiple rows in table sql insert
- Good practices for variables in Laravel's layout files
- Variable in Python going up by more than 1 at a time
- Accessing a variable from a string
- Encapsulation does not seem to work in dart
- TypeError: indice_delete() takes 0 positional arguments but 3 were given
- Altova Mapforce - How to use results from Tokenize at the same time in a database call?
- Powershell v5 - variable name replacement when referring to WPF objects
- Use javascript variable in document.querySelector (howTo)
- usage of multinomial assign javascript?
Related Questions in STARTUP
- How to open all folders in CWD as tmux windows
- Anaconda navigator does not start every time my laptop is turned off
- setting guifont in .vimrc does not work Windows 11
- For a two-stage cluster deployed in Apache IoTDB, why the confignode of the second server cannot be started and added to the seed confignode?
- Fresh MongoDB Community Edition install will not start (Installed through a fresh Homebrew install)
- How to deal with the status of the third confignode in Apache IoTDB cluster to running?
- warning: no previous extern declaration for non-static variable 'c' [-Wmissing-variable-declarations]
- I created an executable in Python but it doesn't always start properly at startup
- Adding multiple OpenIdConnect authentication schemes to the services and choosing at runtime which to use
- Portable windows app built with electron-builder takes too long to start up
- Is there a way to remove UWP startup tasks entries from the Task Manager?
- Intelhaxm has made iMac unable to start up
- Unable to start debugging. Visual Studio 2022
- Flutter app performs downloads and tasks on startup without user interaction
- PowerShell to start a script at startup with Task Scheduler
Related Questions in SHUTDOWN
- Unexpected OS Shutdown
- weblogic abruptly stopped during deployment with fatal error
- Error message on shutdown - from unshown winform
- Metatrader 5 closes after initialization
- How can I find out when the computer shuts down after executing the shutdown command?
- Timing issue while looping over the testing tool command line process
- Android Dumpsys - How to obtain power on/off data from a year ago
- Close Tauri window without closing the entire app
- What is the most appropriate way to shutdown the host system from within docker
- MariaDB always displays message Erorr:MySQL shutdown unexpectedly
- Get last Windows/PC shutdown time with VBA
- Preventing DLLHost Process Shutdown or Keeping Explorer Window Responsive during Long-Running IExplorerCommand::Invoke Operation in C++
- Will my heroku app be affected by adminium shutdown?
- In Swift on macOS, how can I properly catch the powerdown event from NotificationCenter?
- Powershell Script - Shutdown PC after set idle time
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You should catch event on windows shutting down. And in handler you can exec sql query, that change your field in table.
Here you can get more information about windows shutting down: How to detect Windows shutdown or logoff
EDIT
You can use this code in handler of FormClosing event:
When Windows is shutting down it send close signal to all applications.