如何将VB.Net Windows窗体转换为Web [英] How to transform VB.Net Windows form to web

查看:472
本文介绍了如何将VB.Net Windows窗体转换为Web的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我用VB.Net中的Visual Studio开发了一个应用程序,它有多个Windows窗体。我想转换这个应用程序,使其可以通过Web浏览器访问远程访问。



理想情况下,我想尽可能多地保留我的VB。网络代码,只需更换Windows窗体。如果我必须重新创建Web表单看起来像现在的样子,我宁愿有一个工具,允许拖放控件(按钮,列表视图,图片框中的视频流,NumericUpDown,ComboBox,文本框) ;我曾经简单地试过使用asp,但我不知道它,所以它有点痛苦。如果有其他语言或工具,我宁愿这样做。



另外,对于运行该应用程序的计算机,我想避免使用IIS。如果可以使用最简单的环境安装应用程序,那么这将是最好的。我希望Windows XP家庭版或专业版,窗口7和8版。



这个论坛的专业人士有什么建议吗?



先谢谢。

Hi,

I have developed an application with Visual Studio, in VB.Net, that has multiple Windows forms. I would like to convert this application to make it accessible through a web browser for remote access.

Ideally, I would like to keep as much as possible of my VB.Net code and just replace the windows forms. If I have to recreate the web forms to look like what I have now, I would prefer to have a tool that allows to do drag & drop of controls (button, listview, video streaming in a picture box, NumericUpDown, ComboBox, Textbox); I have briefly tried to use asp but I don''t know it so it was a bit painful. If there are other languages or tools, I would prefer that.

Also, for the computer running the application, I would like to avoid using the IIS. If the application can be installed with the easiest environment, then it would be best. I expect Windows XP home or pro, window 7 and 8.

Any suggestion from the pros on this forum?

Thanks in advance.

推荐答案

你不能。您最好的选择是重用与UI无关的代码。希望你把它隔离好。网页的功能与表单或窗口非常不同。主要原因是HTTP的无状态性质。



-SA
You cannot. You best bet will be reusing of the code unrelated to UI. Hope you isolated it well. The functionality of Web pages are very, very different from forms or windows. Main reason for it is the stateless nature of HTTP.

—SA

Hi Sutton,



在某种程度上,这取决于你的编码技巧。

很明显,所有方面都是关于必须重写 GUI

但是如果你在纯代码中有一个写得很好的通用业务逻辑层,它可能会用于次要配置。

如果你没有解耦你的BL和GUI,至少你现在知道为什么要这样:)

Hi Sutton,

To some extent it depends on your coding techniques.
What is clear is that all sides regarding the GUI would have to be re-written.
But if you have a solid well written generic Business Logic layer in pure code it can probably be used with minor configuration.
If you haven''t decoupled your BL and GUI, at least you know now why one should :)
<br />
You mentioned you tried asp

。那是经典的 asp 还是 ASP.NET ?请注意,ASP.NET正如您所提到的那样,使用Visual Studio IDE等将控件拖放到窗体GUI,非常简单(当我们使用它时,您可以考虑其他技术,如闪存,Silverlight ,mvc)



至于你希望避免 IIS ,在我看来,托管一个网络应用程序的简单解决方案,它做了所有为你工作,就像那样简单。

如果没有IIS,你将不得不管理与客户端和HTTP模块等的连接,非常黑客。

但是如果你有其他解决方案你就更熟悉了这很好。



祝你好运



干杯,

Edo

. Is that classic asp or ASP.NET? note that ASP.NET as exactly what you mentioned, drag-n-drop controls to a form GUI with the Visual Studio IDE etc, very easy (and while we''re at it, you can consider other technologies, like flash, silverlight, mvc)

As for your wish for avoiding IIS, it seems to me the simple solution for hosting a web app, it does all the work for you, simple as that.
Without IIS you''ll have to manage the connections with the clients and the HTTP module etc, quite a hack.
But if you have other solutions you are more acquainted with that''s fine.

Good luck

Cheers,
Edo


这篇关于如何将VB.Net Windows窗体转换为Web的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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