Adding Button Using C#

Adding Button Programmatically Using C#

In this tutorial I will teach you how to add a Button programmatically in C#.Net. With this method, there’s no need for you to drag and drop a Button in the Form anymore because the button will automatically appear on the Form . New Buttons will be added in the Form when clicked.


So, let’s get stated:

Keyboard Arrows Moving Screen Inste... x
Keyboard Arrows Moving Screen Instead Of Excel Cell Selection [SOLVED]

Open Microsoft Visual Studio and create a new Windows Form Application for C#. The Form will look like this.


After creating a Windows Form Application, go to the solution explorer and click the “code view“.


In the code view, declare the variables for counting the controls that will be added and setting up the location of the controls in the Form.

After declaring variables, create a method for creating.

Then, create a method for adding another button when clicked.

Lastly, do this following codes for displaying the button on the first load of the form.



For all students who need programmer for your thesis system or anyone who needs a sourcecode in any programming languages. You can contact me @ :

Email – [email protected]
Mobile No. – 09305235027 – tnt

Project Name : Adding Button Programmatically Using C#
Project Platform :C#
Programming Language Used:C# Programming Language
Developer Name
IDE Tool (Recommended):Visual Studio 2019
Project Type :Desktop Application
Upload Date and Time:June 15, 2016- 5:33 am

Leave a Comment