Hi,
you have to look to the code that Visual Studio generate for you when you
add a textbox from the toolbox and then reproduce all this statements
programmatically.
In details:
1) declaration:
private System.Windows.Forms.TextBox textbox1;
2) instance:
this.textbox1 = new System.Windows.Forms.TextBox();
3) properties:
this.textbox1.Location = new System.Drawing.Point(16, 264);
this.textbox1.Name = "txtLog";
this.textbox1.Size = new System.Drawing.Size(264, 224);
this.textbox1TabIndex = 9;
this.textbox1.Text = "";
add all properties that you need
4) add your control:
this.Controls.Add(this.textbox1);
I hope this will help you.
Fede
<ly***@citiz.net> ha scritto nel messaggio
news:OU**************@tk2msftngp13.phx.gbl...
please help me!