当计算机因任何故障而关闭时,如何在后端数据库中进行更改 [英] How to make a change in Back End Database When my computer turns off by any fault

查看:62
本文介绍了当计算机因任何故障而关闭时,如何在后端数据库中进行更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在v s 2010中有一个Windows窗体应用程序.
我想维护一个包含两个FLAG值的标志
1)是和2)否
我想要的是,当加载表单时,Flag值应为yes,而当表单关闭时,后端数据库中的flag值应为no
就像在任何网站上亲自登录一样.....
但是我的问题是,如何关闭计算机才能维护它.......

i have one windows form application in v s 2010.
i want to maintain a FLAG in Which there are two values of FLAG
1) yes and 2) no
What i want is that when a form is loaded the Flag value should be yes and when The form is closed the flag value should be no in my back end database
It is same like sign in person on any web site.....
But my Problem is that How Can i maintain it any how the my computer is turn off .......

推荐答案

您好Neeil,

您可以分别在表单加载和表单关闭事件上设置标志.
Hi Neeil,

You can set flag respectively on form load and form closing event of the form.


这篇关于当计算机因任何故障而关闭时,如何在后端数据库中进行更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆