Winform C# là gì
Create a Windows Forms app in Visual Studio with C#
Is this page helpful?
Please rate your experience
Yes
No
Any additional feedback?
Feedback will be sent to Microsoft: By pressing the submit button, your feedback will be used to improve Microsoft products and services. Privacy policy. Show
Submit
Thank you. In this articleIn this short introduction to the Visual Studio integrated development environment (IDE), you'll create a simple C# application that has a Windows-based user interface (UI). If you haven't already installed Visual Studio, go to the Visual Studio downloads page to install it for free. If you haven't already installed Visual Studio, go to the Visual Studio downloads page to install it for free. Note Some of the screenshots in this tutorial use the dark theme. If you aren't using the dark theme but would like to, see the Personalize the Visual Studio IDE and Editor page to learn how. If you haven't already installed Visual Studio, go to the Visual Studio 2022 downloads page to install it for free. Create a projectFirst, you'll create a C# application project. The project type comes with all the template files you'll need, before you've even added anything.
Create the applicationAfter you select your C# project template and name your file, Visual Studio opens a form for you. A form is a Windows user interface. We'll create a "Hello World" application by adding controls to the form, and then we'll run the app. Add a button to the form
Add a label to the formNow that we've added a button control to create an action, let's add a label control to send text to.
Add code to the form
Run the application
Create the applicationAfter you select your C# project template and name your file, Visual Studio opens a form for you. A form is a Windows user interface. We'll create a "Hello World" application by adding controls to the form, and then we'll run the app. Add a button to the form
Add a label to the formNow that we've added a button control to create an action, let's add a label control to send text to.
Add code to the form
Run the application
Next stepsTo learn more, continue with the following tutorial: Tutorial: Create a picture viewer See also
|