首页 > 编程 > .NET > 正文

Chapter 3 Major VB.NET Changes(1)

2024-07-10 13:02:34
字体:
来源:转载
供稿:网友
  • 本文来源于网页设计爱好者web开发社区http://www.html.org.cn收集整理,欢迎访问。
  • major vb.net changes
    vb.net introduces major changes to the vb language. some
    are modifications to existing ways of working, whereas others
    are brand new. this chapter will cover some of those
    changes, but this is by no means an exhaustive list of all
    changes from vb to vb.net. first, you’ll see some of the
    features that have changed. then you will see some of the
    new features.
    general changes
    there are a number of general changes to be aware of when
    moving from vb to vb.net. among them are topics such as
    the removal of default properties, subs and functions requir-ing
    parentheses, byval being the default method for passing
    parameters, and changes to the logical operators. these
    changes, and others, are detailed in this section.
    default properties
    in vb6, objects could have default properties. for example,
    the following code is perfectly valid in vb6, if you assume
    that text1 is a text box:
    text1=”hello,world ”
    this code takes the string “hello,world ”and sets the
    default property of the text box, the text property, to the
    string. the major drawback to default properties is that they
    require you to have a set command in vb. for example, take
    a look at the following block of vb6 code:
    chapter 3
    major vb.net changes
    发表评论 共有条评论
    用户名: 密码:
    验证码: 匿名发表