如何开发Windows窗体应用程序以脱机和在线工作 [英] how to develop windows forms application to work offline and online
本文介绍了如何开发Windows窗体应用程序以脱机和在线工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何开发Windows窗体应用程序以脱机和在线工作
解决方案
Windows窗体不能在线工作,除非您可以嵌入一个在Form对象中使用WebBrowser控件,或者,您可能难以与纯Web应用程序进行通信/互操作。
使用Windows窗体和您的应用程序永远不会在iOS,Android或者Linus上运行,永远不能在所有浏览器中运行。
我建议你重新考虑这个想法,并研究替代方案。
我无法理解你的问题,请说清楚。
我这样做:当你托管你的数据库并制作你的表单应用程序是实时的,它只能在网上工作,比如自助服务终端应用程序或令牌打印系统。(否则表单应用程序不被认为是在线,它的基于Windows。)
根据您当前的帖子 - 我可以推荐这样的内容。
Fir你需要分离在线和离线功能,然后
我们可以在线或离线检查,根据这个检查继续。
如果在线 - >转到这些表格并执行所有这些操作/功能。
如果离线 - >请转到此表格/页面并填写这些功能。
谢谢,
Vaidhya.P
how to develop windows forms application to work offline and online
解决方案
Windows Forms will not work on-line for you, except in the sense you can embed a WebBrowser Control in a Form object, or, you could, with difficulty communicate/inter-operate with a "pure" web-app.
Use Windows Forms and your app will never run on iOS, or Android, or Linus, never be usable in all browsers.
I suggest you re-consider this idea, and research alternatives.
I couldn't understand your question, please make it clear.
I take like this : when you host your db and make your form app live, it will work online only , like a kiosk application or a token printing systems.(otherwise form apps are not considered online , its windows based.)
Depending on your current post - I can suggest something like this.
First you need to seperate the online and offline functionalities, then
we can have a check for online or offline , proceed depending on this check.
if online --> go to these forms and perform all these actions / functionalities.
if offline --> go to this form/page and perfrom these functionalities.
Thanks,
Vaidhya.P
这篇关于如何开发Windows窗体应用程序以脱机和在线工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文