Dynamic Control Creation

snarfblam

Mega-Ultra Chicken
Staff member
Joined
Jun 10, 2003
Location
USA
User Rank
*Expert*
Questions regarding on-the-fly control creation are not uncommon. Even when people figure out how to create controls, there is often difficulty and confusion with event handling and referencing controls.

This tutorial explores the basics of dynamic control creation and addresses some common issues. Example code is provided in both C# and VB for .NET versions 1.0-2.0, and a Visual Studio 8 demo project is included for both languages.

Tutorial
C# Demo
VB Demo

Suggestions and comments welcome.
 
Top