button | SoloLearn: Learn to code for FREE!



can we create a button in c#

5/26/2019 3:46:25 AM

shark 1

2 Answers

New Answer


Creating a Button control at run-time is merely a work of creating an instance of Button class, set its properties and add Button class to the Form controls. More on these links : https://www.c-sharpcorner.com/uploadfile/mahesh/creating-a-button-at-run-time-in-C-Sharp/ https://www.c-sharpcorner.com/uploadfile/mahesh/button-in-C-Sharp/ http://csharp.net-informations.com/gui/button.htm https://stackoverflow.com/questions/1434282/how-do-i-create-5-buttons-and-assign-individual-click-events-dynamically Thanks


I know it can be created in Visual Studio🤔 Everything relative to GUI are not so easy to make from zero🤔