如何创建Windows窗体应用程序 [英] how to create windows form application

查看:99
本文介绍了如何创建Windows窗体应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在visual studio 2013中使用c#.In文件新项目开发一个计费软件项目哪个选项可供选择?我选择c# - > windows桌面,在这个选项中,如Windows窗体应用程序,WPF应用程序,WPF cutom控件库,WPF用户控件库等。

我应该选择哪个选项?

i想创建计费软件,它将创建.exe并安装在其他电脑上。

我可以使用哪个数据库?

sql express还是ms access?

i want to develop a billing software project in visual studio 2013 using c#.In file new project which option to chose? i select c#->windows desktop,in this options like windows form application,WPF application,WPF cutom control library,WPF user control library etc.
which option should i go for?
i want to create billing software which will create .exe and install on other pc.
which database i can use?
sql express or ms access?

推荐答案

这不是我们可以回答的问题:例如,如果您不知道WPF,那么列表中的最后三个将是完全浪费你的时间我们不知道你做了什么,也不知道。



如果你想要一个可执行文件,那么你想要一个某种形式的应用程序 - 一个类库不能直接执行 - 所以选择一个你熟悉的应用程序类型。



就DB而言,我们也无法真正帮助:SQL是例如,优先选择Access,但仅​​当您需要多次使用才能访问相同的数据时。如果你不这样做 - 你只有一个用户数据库 - 那么SQL是一个糟糕的选择,因为安装和维护它是一项复杂的工作而不是我想要信任的普通用户:它太容易了在很大程度上犯下重大错误并危及您的数据安全。在这些情况下,Access,SQLite,SQLCE等都是更好的选择。



所以坐下来,想想你想要实现的目标,并尝试设计某种形式的规范。这应该有助于引导你进入一个实现框架。
That isn't really a question we can answer: if you don't know WPF for example, then the last three in your list are going to be a complete waste of your time. And we have no idea what you do and do not know.

If you want an executable, then you want an application of some form - a class library can't be executed directly - so pick an "application" type that you are familiar with.

As far as DB goes, we can't really help there either: SQL is preferable to Access for example, but only if you need to have multiple uses accessing the same data. If you don't - you only have a single user DB - then SQL is a poor choice as installing and maintaining it is a complex job and not one I'd want to trust to a "normal user": it's far too easy to make major mistakes and compromise your data security to a massive extent. In those cases, Access, SQLite, SQLCE, etc. are all better choices.

So sit down, think about exactly what you are trying to achieve, and try to design a specification of some form. That should help to guide you into an implementation framework.


Richard MacCutchan在评论中写道:
Richard MacCutchan wrote in his comment to the question:

你需要良好的编程经验来创建像计费项目一样复杂的东西。

You need good programming experience to create something as complex as a billing project.

这就是关键。



如果你有这种经历,那么你可能会立即意识到数据库的选择只是您需要决定的许多方面之一,并且选择并不那么简单,它应该基于您的项目的细节,从其目标到一些需求细节。但是,我不想劝阻你,因为没有做出决定和工作就不可能获得经验。



我不推荐访问,因为它是专有的,甚至不是客户端 - 服务器(是基于文件服务器的工具)。要正确选择数据库服务器,您可能需要尝试一些并且可能使用您想要考虑的那些原型开发一小部分开发。请参阅:

http://en.wikipedia.org/wiki/List_of_relational_database_management_systems

http://en.wikipedia.org/wiki/Comparison_of_relational_database_management_systems



另请参阅 http://en.wikipedia.org/wiki/Comparison_of_object-relational_database_management_systems






祝贺4月1日! :-)



我想利用这个机会邀请大家看一下我4月份新发布的1并有一些乐趣:



某些编程方法神经语言程序设计

特别鼓励在评论和讨论中参与此游戏。



谢谢。

-SA

And this is the key.

If you had this experience, you would probably immediately realize that the choice of the database is just one of the many aspects you need to decide on, and that the choice is not that simple, it should be based on the detail of your project, from its goals to some requirements detail. However, I don't want to discourage you, as it's impossible to gain experience without making decision and doing the job.

I would not recommend Access, because it is proprietary and not even client-server (is a file-server based tool). To properly choose the database server, you may need to try out some and perhaps prototype a small part of development with those you want to consider. Please see:
http://en.wikipedia.org/wiki/List_of_relational_database_management_systems,
http://en.wikipedia.org/wiki/Comparison_of_relational_database_management_systems.

See also http://en.wikipedia.org/wiki/Comparison_of_object-relational_database_management_systems.



Congratulations with April 1st! :-)

I would like to use the occasion to invite everyone to see my new 1 of April publication and have some fun:

Some Programming Approaches to "Neuro-Linguistic Programming".
Participation in this game in Comments and Discussions is especially encouraged.

Thank you.
—SA


这篇关于如何创建Windows窗体应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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