Tag Archives: create controls

Create controls for a tic-tac-toe application at run time in C#

This example shows how a C# program can create controls at runtime. It demonstrates several techniques that may be useful if you’re creating a board game such as tic-tac-toe (naughts and crosses). They include: Creating and configuring a TableLayoutPanel control … Continue reading

Posted in controls, games | Tagged , , , , , , , , , | Leave a comment

Create controls at runtime and add them to a form or inside a container in C#

This example shows how to create controls at runtime and place them either directly on the form or inside a container. When you click the example’s Create Button button, the following code creates a new button on the form. private … Continue reading

Posted in controls | Tagged , , , , , , , | Leave a comment