Share vb.net 64 bit application

lebaonhat.hoa

New member
### Cách tạo ứng dụng VB.net 64 bit

**Tổng quan**

Visual Basic .Net là ngôn ngữ lập trình được sử dụng để tạo các ứng dụng cho hệ điều hành Microsoft Windows.VB.NET là ngôn ngữ 32 bit, nhưng có thể tạo các ứng dụng 64 bit bằng VB.NET.Bài viết này sẽ chỉ cho bạn cách tạo ứng dụng VB.NET 64 bit.

** Điều kiện tiên quyết **

Để làm theo hướng dẫn này, bạn sẽ cần những điều sau đây:

* Một máy tính chạy Windows 7 trở lên
* Môi trường phát triển Visual Studio 2019 hoặc muộn hơn
* .NET Framework 4.6.2 trở lên

** Tạo một dự án mới **

Để tạo một dự án mới, hãy mở Visual Studio và nhấp vào menu ** tệp **.Sau đó, nhấp vào ** Mới ** và chọn ** Dự án **.Trong hộp thoại ** New Project **, chọn ** Visual Basic ** từ ** Loại dự án ** Danh sách thả xuống và chọn ứng dụng Windows Forms ** từ danh sách ** Mẫu **.Kể tên dự án ** My64BitApplication ** và nhấp vào ** OK **.

** Thêm tham chiếu 64 bit **

Theo mặc định, Visual Studio sẽ tạo ra một dự án 32 bit.Để tạo một dự án 64 bit, bạn cần thêm một tham chiếu 64 bit cho dự án.Để thực hiện việc này, nhấp chuột phải vào dự án trong ** Solution Explorer ** và chọn ** Thêm tham chiếu **.Trong hộp thoại ** Thêm tham chiếu **, nhấp vào tab **. Net Framework ** và chọn ** System.Runtime.InteropService.dll **.Nhấp vào ** OK ** để thêm tham chiếu.

** Thêm nút 64 bit **

Bây giờ bạn đã thêm một tham chiếu 64 bit vào dự án, bạn có thể thêm nút 64 bit vào biểu mẫu.Để thực hiện việc này, kéo một nút ** điều khiển ** từ hộp công cụ ** ** vào biểu mẫu.Trong cửa sổ ** Thuộc tính **, đặt thuộc tính ** văn bản ** của nút thành ** Nhấp vào tôi **.

** Đặt khung đích **

Bước cuối cùng là đặt khung đích của dự án thành 64 bit.Để thực hiện việc này, nhấp chuột phải vào dự án trong ** Solution Explorer ** và chọn ** Thuộc tính **.Trong hộp thoại ** Project Properties **, nhấp vào tab ** Ứng dụng ** và đặt thuộc tính ** Khung mục tiêu ** thành **. Net Framework 4.6.2 (x64) **.

** Chạy ứng dụng **

Bây giờ bạn đã tạo một ứng dụng VB.NET 64 bit, bạn có thể chạy ứng dụng bằng cách nhấp vào phím ** F5 **.Ứng dụng sẽ được ra mắt ở chế độ 64 bit.

### hashtags

* #vb.net
* #64-bit
* #Visual Studio
* #Windows-forms
* #Ứng dụng
=======================================
### How to Create a 64-Bit VB.NET Application

**Overview**

Visual Basic .NET is a programming language that is used to create applications for the Microsoft Windows operating system. VB.NET is a 32-bit language, but it is possible to create 64-bit applications using VB.NET. This article will show you how to create a 64-bit VB.NET application.

**Prerequisites**

To follow this tutorial, you will need the following:

* A computer running Windows 7 or later
* The Visual Studio 2019 or later development environment
* The .NET Framework 4.6.2 or later

**Creating a New Project**

To create a new project, open Visual Studio and click on the **File** menu. Then, click on **New** and select **Project**. In the **New Project** dialog box, select **Visual Basic** from the **Project Type** drop-down list and select **Windows Forms Application** from the **Templates** list. Name the project **My64BitApplication** and click **OK**.

**Adding a 64-Bit Reference**

By default, Visual Studio will create a 32-bit project. To create a 64-bit project, you need to add a 64-bit reference to the project. To do this, right-click on the project in the **Solution Explorer** and select **Add Reference**. In the **Add Reference** dialog box, click on the **.NET Framework** tab and select **System.Runtime.InteropServices.dll**. Click **OK** to add the reference.

**Adding a 64-Bit Button**

Now that you have added a 64-bit reference to the project, you can add a 64-bit button to the form. To do this, drag a **Button** control from the **Toolbox** onto the form. In the **Properties** window, set the **Text** property of the button to **Click Me**.

**Setting the Target Framework**

The final step is to set the target framework of the project to 64-bit. To do this, right-click on the project in the **Solution Explorer** and select **Properties**. In the **Project Properties** dialog box, click on the **Application** tab and set the **Target Framework** property to **.NET Framework 4.6.2 (x64)**.

**Running the Application**

Now that you have created a 64-bit VB.NET application, you can run the application by clicking on the **F5** key. The application will be launched in 64-bit mode.

### Hashtags

* #vb.net
* #64-bit
* #Visual-studio
* #Windows-forms
* #Application
 
Join Telegram ToolsKiemTrieuDoGroup
Back
Top