Skip to content

Use this repository to create C# WinForms Apps in Visual Studio Code! Go to README to find out how to use it.

License

Notifications You must be signed in to change notification settings

ZakDevOnGitHub/CSharpWinFormsTemplate

Repository files navigation

CSharpWinFormsTemplate

Hello guys! this repository contains a C# WinForms template that can be used to create desktop applications Platformwide!

WinForms

WinForms is short for Windows Forms, WinForms is an open source Graphical User Interface (aka GUI) class library that is powered by ".NET". It is used to create desktop apps and also heavily used by an IDE called Visual Studio. WinForms is a great way to create your desktop applications in C#!

Pro's and Con's

Pro's

This C# WinForm template can be used in any C#-supported code editor as long as it uses ".NET Core" to compile the code. It is very easy to add items (such as Buttons, Labels, Textboxes, etc.) to your WinForm apps. You can copy files like (Form1.cs, Form1.designer.cs) to make more forms to expand on the app you desire to create!

Con's

There is no Drag n' Drop GUI (like Visual Studio) to add your items, or set your values in properties. (This means you will have to set "properties" values, strings, etc. manually) You can't preview your recent changes as a GUI. (This means you have to run your app every time you make changes in order to see the made changes) You have to add the source code of any other template you desire to use. (Such as libraries)

How to use this template

we've gone over the Pro's and Con's of this WinForms template, now we're going to show you how you can use it to create your apps!

Windows

Step 1: Install .NET Software Development Kit (aka SDK)

NOTE: This repository is not needed for Windows as you can create a WinForms template by running "dotnet new winforms" in your dedicated folder. (as long as you finished all of the steps) You can download it on https://dotnet.microsoft.com/en-us/download Once you've downloaded it, go to your downloads folder (or where the file downloaded to) and double click the dotnet-sdk-7.X.XXX-win-(x64/x32).exe Follow the instructions and make sure you have enough disk space to install it.

Step 2: Install Visual Studio Code and use it

Download Visual Studio Code from https://code.visualstudio.com/ When you finish installing .NET SDK, open Visual Studio Code. Once it opens, choose your dedicated folder you want to use to create the WinForms template. Then click "View" on the menu strip and click Terminal. In Terminal, type "dotnet new winforms"; A new WinForms template will appear. You can now start coding in your WinForms environment!

Mac

Step 1: Install .NET Software Development Kit (aka SDK)

Go to the Mac Terminal and type "brew install --cask dotnet-sdk" Make sure you have enough disk space to install it.

Step 2: Install Visual Studio Code and use it

Download Visual Studio Code from https://code.visualstudio.com/ When you finish installing .NET SDK, open Visual Studio Code. Download this repository by going to https://github.com/ZakDevOnGitHub/CSharpWinFormsTemplate/ and click the green button labeled "Code" on the right side of the page. Click Download ZIP; extract the zip file once it's done donwloading. Open Visual Studio Code and select the folder with the template. You can now start coding in your WinForms environment!

Linux

Step 1: Install .NET Software Development Kit (aka SDK)

Press CTRL + ALT + T and type (sudo) snap install dotnet-sdk. Make sure you have enough disk space to install it.

Step 2: Install Visual Studio Code and use it

once .NET SDK is installed, type (sudo) snap install code. when you finish installing .NET SDK and Visual Studio Code, clone this repository by typing "(sudo) git clone https://codeload.github.com/ZakDevOnGitHub/CSharpWindowsTemplate" once the cloning finishes, Open Visual Studio Code and select the folder with the template. You can now start coding in your WinForms environment!

Conclusion

This conclude the introduction to WinForms and using them with Visual Studio code. Happy Coding! :)

About

Use this repository to create C# WinForms Apps in Visual Studio Code! Go to README to find out how to use it.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages