Visual studio provides a very rich tool box,
useful to create nice UI, but what if we are in need create those controls at
run time, sure we could , that's what I am going to demonstrate now.
Code behind the form
using System;
using System.Collections.Generic;using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace CreateUserInterfaceControlsAt_RunTime
{public partial class Form1 : Form
{ buttonCount = 0;
int textBoxCount = 0;
int ty = 100;
int by = 100;
public Form()


Join the conversation! Your thoughts help the community grow.