Windows forms ??

I suppose the code does not work because you are simply creating a new
instance of the control, but are not *adding* it to any container
control such as the Form or a Panel.

On Oct 2, 1:19 am, Ranjith <[email protected]> wrote:
> Hello
>        Will any please tell me why my below codes for creating new
> text box is not working.
>
> TextBox tb_name = new TextBox();
>             tb_name.Location = new System.Drawing.Point(53, 87);
>             tb_name.Size = new System.Drawing.Size(100, 20);
>             tb_name.Visible = true;
>
> Is there any new extra necessery for this to happen....??
> Thank You

Reply via email to