private static int n = 0;
private void button1_Click(object sender, EventArgs e)
{
var newButton = new Button()
{
Name = "btn" + n,
Text = n.ToString(),
Location = new Point(10, 10 + n*30),
Size = new Size(50, 25),
TabIndex = 100 + n,
};
n++;
this.Controls.Add(newButton);
}
var s = Console.ReadLine();
var arr = s.Split(' ');
if (arr.Length == 4)
{
var a1 = Convert.ToDouble(arr[0]);
var a2 = Convert.ToDouble(arr[1]);
var a3 = Convert.ToDouble(arr[2]);
var a4 = Convert.ToDouble(arr[3]);
Console.Write("{0} {1} {2} {3}", a1, a2, a3, a4);
Console.ReadKey();
}
for (int i = 0; i < 100; i++)
{
listBox1.Items.Add(i);
Application.DoEvents();
System.Threading.Thread.Sleep(1000);
}
private void button1_Click(object sender, EventArgs e)
{
listBox1.Items[0] = ((String)listBox1.Items[0]).Replace('e','!') + "_Clicked";
}