学习Windows窗体的最佳方法 [英] best way to learn Windows Forms

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

问题描述

我是VB6程序员,我知道如何构建控制台应用程序..我只是

不明白如何绕过WinForms;他们看起来比VB6复杂得多。


谢谢


-Charlie

I am a VB6 programmer and I know how to build console apps.. I just
dont understand how to get my mind around WinForms; they just seem a
lot more complex than VB6.

Thanks

-Charlie

推荐答案

最大的区别是.Net是真正面向对象的,你必须得到用于处理类的



首次启动时,差异似乎更大。您必须首先创建表单的实例,然后

调用该实例上的方法。


示例:如果您有一个名为HelloWorld的表单。 vb ---(注意

扩展名的差异)你首先要创建一个实例。形式的东西

如:

dim f as new HelloWorld


然后显示表格,你会用

f.show


模态也有点不同 - 试试

f.showdialog


然后其他的东西比你习惯的更像你想象的那样

是 - 例子:

f.close

f.hide




当然.Net与VB6还有许多不同之处,但如果你喜欢

me,在你工作了一段时间后,你会发现.Net世界更加有序和舒适。


HTH

< je ********* @ hotmail.comwrote in message

news:11 ********* *************@80g2000cwy.googlegro ups.com ...
The big difference is .Net is truly object oriented, and you have to get
used to dealing with classes. The difference appears bigger than it is when
first starting. You have to create an instance of your form first, and then
call the methods on that instance.

Example: if you have a form called HelloWorld.vb --- (note the difference in
extension) you would first create an "instance" of the form by something
such as:
dim f as new HelloWorld

Then to show the form, you would use
f.show

Modality is a bit different also -- try out
f.showdialog

Then other things work more like your used to than you think they might
be -- examples:
f.close
f.hide
etc.

Of course there are many other differences in .Net vs VB6, but if your like
me, after you''ve worked with it for a while, you''ll find the .Net world a
much more orderly and comfortable one.

HTH
<je*********@hotmail.comwrote in message
news:11**********************@80g2000cwy.googlegro ups.com...

>我是VB6程序员,我知道如何构建控制台应用程序..我只是

不明白如何绕过WinForms;他们看起来比VB6复杂得多。


谢谢


-Charlie
>I am a VB6 programmer and I know how to build console apps.. I just
dont understand how to get my mind around WinForms; they just seem a
lot more complex than VB6.

Thanks

-Charlie



查看Tim Patrick的书,从头到尾完成Visual Basic 2005.

通过完成它,你构建一个完整的应用程序,所以它

涵盖了从构建表单到数据访问的所有基础知识。


Robin S.

-----------------------------

< je ********* @ hotmail.com写信息

新闻:11 ********************** @ 80g2000cwy.googlegro ups.com ...
Check out Tim Patrick''s book, Start-to-Finish Visual Basic 2005.
By working through it, you build an entire application, so it
covers all the basics, from building forms to data access.

Robin S.
-----------------------------
<je*********@hotmail.comwrote in message
news:11**********************@80g2000cwy.googlegro ups.com...

>我是VB6程序员,我知道如何构建控制台应用程序..我只是

不明白如何绕过WinForms ;他们看起来比VB6复杂得多。


谢谢


-Charlie
>I am a VB6 programmer and I know how to build console apps.. I just
dont understand how to get my mind around WinForms; they just seem a
lot more complex than VB6.

Thanks

-Charlie



我只是不需要基础知识;我需要更高级的东西

我可以构建控制台应用程序,比如我的手背

并在实例化之前声明表单?是不是那个标准vb6

甚至vba?


甚至在Access Dim frm中作为新的Form_Switchboard对吧?


i just--大图 - 一本书或10本单书不会为我做这件事。


有好的窗户吗?形成网站?

最佳实践,可扩展性?


我只是不明白为什么表格是如此复杂的野兽;在什么情况下你需要更改表格的源代码?

-Charlie

RobinS写道:
I just don''t need the basics; I need more advanced stuff
I can build console apps like the back of my hand
and declaring forms before instantiating them? isn''t that standard vb6
and even vba?

even in Access Dim frm as new Form_Switchboard right?

i just-- the big picture-- a single book or 10 single books isnt going
to do this for me.

Are there good windows form websites?
Best practices, extensibility?

I just don''t understand why forms are such a complex beast; under what
situations do you change the source code for the form?
-Charlie
RobinS wrote:

查看Tim Patrick的书,Start-to-Finish Visual Basic 2005.

通过完成它,你构建了一个完整的应用程序,所以它是

涵盖了从建筑形式到数据访问的所有基础知识。


Robin S.

---------- -------------------

< je ********* @ hotmail.comwrote in message

news:11 ********************** @ 80g2000cwy.googlegro ups.com ...
Check out Tim Patrick''s book, Start-to-Finish Visual Basic 2005.
By working through it, you build an entire application, so it
covers all the basics, from building forms to data access.

Robin S.
-----------------------------
<je*********@hotmail.comwrote in message
news:11**********************@80g2000cwy.googlegro ups.com...

我是VB6程序员,我知道如何构建控制台应用程序..我只是

不明白如何绕过WinForms;他们看起来比VB6复杂得多。


谢谢


-Charlie
I am a VB6 programmer and I know how to build console apps.. I just
dont understand how to get my mind around WinForms; they just seem a
lot more complex than VB6.

Thanks

-Charlie


这篇关于学习Windows窗体的最佳方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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