First week of VB learning-Overview

Source: Internet
Author: User

Since I have studied C ++ before, I have never been in touch with VB. This semester I have to be a ta of the tutorial class of VB, and I have to study it with my head ~~~

This week, I mainly talked about the development of VB and the introduction of the Platform Based on vs2005. I used vs2008 to implement related operations.

1.1vb.net Overview

The emergence of the basic language in the 20th century and 60 years;

In 1980s, truebasic, quickbasic, and turbobasic;

Microsoft launched visual basic1.0 in 1991. It uses visual tools as the interface design, structured basic language as the basis, and event-driven as the operating mechanism. From vb1.0 in December 1991 to VB6.0 in December 1998, the system has been upgraded multiple times to provide more powerful functions and wider application;

Visual Basic. Net was officially released in 2002.

1.2microsoft.net Overview

What is. Net?

. Net represents a set, an environment, and a basic programming structure. As a platform to support the next generation of Internet.

. NET is also a user environment and is a basic set of user services that can act on clients, servers, or any place.

For beginners of VB, we can think that. NET is Visual Studio. NET.

Public class form1 private sub button#click (byval sender as object, byval e as system. eventargs) handles button1.click timer1.enabled = false 'Manual, the timer is invalid call mymove () 'Call the mobile sub-process end sub private sub button2_click (byval sender as object, byval e as system. eventargs) handles button2.click timer1.enabled = true' automatic, the timer is valid, and a tick event end sub private sub timereffectick (byval sender as object, byval e as system is triggered every interval time. eventargs) handles timer1.tick call mymove () end sub mymove () label1.top = label1.top + 5 If label1.top> me. height then label1.top = 0 end subend class

Encoding Rules:

(1) The VB. NET code is case-insensitive to English letters. To improve program readability, VB. NET performs the following automatic conversion of user program code:

① For keywords in VB. NET, the first letter is converted to uppercase and the other letters are converted to lowercase letters.

② If a keyword is composed of multiple English words, the system automatically converts the first letter of each word to uppercase.

③ For User-Defined variables and process names, VB. NET is subject to the first definition, and the input will be automatically converted to the first definition.

(2) Free statement writing

① Multiple statements can be written on the same line. The statements are separated by the colon ":". A row can contain up to 255 characters.

② A single-row statement can be written in several lines, followed by a hyphen (_).

(3) adding annotations is conducive to program reading, maintenance, and debugging.

Generally, the Comment content is guided by the vertical marker "'". The comment guided by the vertical marker can appear directly behind the statement. You can also use the "comment" and "uncomment on selected rows" buttons in the "Text Editor" toolbar to add or cancel comments using the selected statements. This is very convenient.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.