Sửa lỗi không build được forrm trong visual studio
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support. Show Tutorial: Create a WinForms app with Visual Basic
In this articleApplies to: Visual Studio Visual Studio for Mac Visual Studio CodeIn this tutorial, you'll create a Visual Basic application that has a Windows Forms user interface. The Visual Studio integrated development environment (IDE) includes all the tools you need to create a Windows Forms app. In this tutorial, you learn how to:
PrerequisitesCreate a projectCreate a Visual Basic application project. The project type comes with all the template files you'll need, before you've even added anything.
Add a button to the formAfter you select your Visual Basic project template and name your file, Visual Studio opens a form for you. A form is a Windows user interface. You'll create a "Hello World" application by adding controls to the form.
Add a label and codeNow that you've added a button control to create an action, add a label control to send text to.
Run the applicationYour application is ready to build and run. Select Start to run the application. Several things happen. In the Visual Studio IDE, the Diagnostics Tools window opens, and an Output window opens. Outside of the IDE, a Form1 dialog box appears. It includes your Click this button and text that says Label1. |