Conversion from Visual Basic 6.0 to Visual Basic. NET (5)

Source: Internet
Author: User

Upgrade

Wizard

No special processing is required.

Clipboard

Visual

The Basic 6.0 Clipboard object provides access to the system Clipboard.

Visual Basic. NET

The Clipboard class allows you to place data on the system Clipboard and retrieve data from it. The new Clipboard class provides more functions and supports more Clipboard formats than Visual Basic 6.0 Clipboard objects. The object module is rebuilt to support these features.

Upgrade

Wizard

Due to differences between object modules, the existing clipboard Code cannot be automatically upgraded. The Clipboard statement indicates an upgrade error.

Dynamic Data Exchange

Visual

Basic 6.0 some controls have attributes and methods that support Dynamic Data Exchange (DDE) sessions.

Visual Basic. NET

Windows forms do not support built-in DDE.

Upgrade

Wizard

The DDE attribute and method flag have an update warning.

Web Applications

WebClass

Visual

Basic 6.0 WebClass is a Visual Basic component that resides on the Web server and can respond to browser input. WebClass usually includes WebItems, which is used to provide content for browsers and public events.

Visual Basic. NET

Web forms have the. NET Framework function and can be used to create browser-based user interfaces for Web applications. Visual Basic. NET has a "WYSIWYG" designer. You can use the controls in the toolbox to create a graphical Web form. In this way, Web user interface development is the same as Windows development. In addition, after a project is created, the Internet Information Services (IIS) server does not have to stop and restart to deploy new content, but cannot use WebClass.

Upgrade

Wizard

WebClass will be upgraded to a Web form. All status store calls are marked with Upgrade warnings. You can rewrite the code to use the advantages of ASP. NET status management.

You can also choose to continue using the WebClass application in Visual Basic 6.0, locate WebClass and WebForm from Visual Basic. NET Web forms, and so on.

ActiveX documents and DHTML applications

Visual

Basic 6.0 ActiveX? The document is displayed in the Internet browser window and provides built-in view area scrolling, hyperlinks, and menu negotiation. DHTML applications include DHTML pages and Client ActiveX DLL.

Visual Basic. NET

Web forms support multiple applications by using HTML. By using the Windows Forms control stored in the browser or the downloaded "secure Windows Forms" EXE, it can support multiple applications in a safer way. This code runs in the security sandbox, so it will not cause damage to your computer.

Upgrade

Wizard

Although ActiveX documents and DHTML applications cannot be upgraded directly, you can switch between ActiveX documents, DHTML applications, and Web forms.

Data

ADO, RDO, and DAO code

Visual

Basic 6.0 ActiveX? Data Objects (ADO), Remote Data Objects (RDO), and data access objects (DAO) are used to connect and disconnect data access.

Visual Basic. NET

ADO. NET provides other classes for disconnecting data. Compared with earlier versions of ADO for distributed applications, these classes provide better performance and scalability. They also simplify the integration of XML data and database data.

Upgrade

You can still use ADO, RDO, and DAO in Visual Basic. NET code.

ADO, RDO, and DAO Data Binding

Visual

Can controls in Basic 6.0 Visual Basic forms be bound to ActiveX? Data Objects (ADO), Remote Data Objects (RDO), and data access objects (DAO) data sources.

Visual Basic. NET

ADO. NET provides read/write data binding for Windows Forms controls and read-only data binding for Web forms.

Upgrade

Wizard

ADO data binding is upgraded to the new ADO. NET data binding. However, the data binding between RDO and DAO cannot be upgraded, and an upgrade error will be reported in the upgrade report.

IDE

"Now" Window

Visual

Basic 6.0 in the "immediate" Window of design mode, you can run some code without starting the entire application through its Startup object. For example, you can display the form, call the module process, and interact with global variables. This is because Visual Basic 6.0 runs from the memory image of the Code, rather than the created output used during debugging.

Visual Basic. NET

You can execute IDE commands from the "commands" window in the design mode, but not all parts of the application. This is because Visual Basic. NET uses the actual output during running and debugging. In this form of debugging, the runtime behavior is most accurately reproduced.

IDE and project scalability

Visual

Basic 6.0 only Visual Basic 6.0 supports the Visual Basic 6.0 integrated development environment (IDE) extension model.

Visual Basic. NET

For all engineering types in Visual Studio. NET, the new IDE extension model is generic. This makes it easier to create external programs that work with different types of projects. The Visual Basic engineering system extension model can also be shared with C #, so the specific functions of the project (such as adding a reference or changing a project property) are used in the same way in both languages.

The Visual Studio. NET code model also provides a common object model for extended programmers to compile code used in projects across different languages. Visual Basic supports reading code through the code model. To write code, you can extract an insert point from the model and write the Visual Basic syntax.


Related Article

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.