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
programmaticall y.
In details:
1) declaration:
private System.Windows. Forms.TextBox textbox1;
2) instance:
this.textbox1 = new System.Windows. Forms.TextBox() ;
3) properties:
this.textbox1.L ocation = new System.Drawing. Point(16, 264);
this.textbox1.N ame = "txtLog";
this.textbox1.S ize = new System.Drawing. Size(264, 224);
this.textbox1Ta bIndex = 9;
this.textbox1.T ext = "";
add all properties that you need
4) add your control:
this.Controls.A dd(this.textbox 1);
I hope this will help you.
Fede
<ly***@citiz.ne t> ha scritto nel messaggio
news:OU******** ******@tk2msftn gp13.phx.gbl...
please help me!