Hello,
One would think this a simple task while there are things to consider like
- Position of a control or multiple controls
- Events for the control as simply place a control on a form generally we want to interact with it except perhaps a label and maybe a image.
I put together two code samples that are pre-done.
First project/code samples creates a single button with events for click, create multiple buttons with interaction with a ListBox and gets captions for buttons from database which could also come from say a text file etc.
Second code sample is rather complex which works with a custom control - grouped-radio buttons.
Find these code samples in the following GitHub repository. Note I used Visual Studio 2019 to write these code samples, one with classic framework and the other with .NET Core Framework.