How can i load the text box and label at the runtime based
on the existing text box and tabel

Answer Posted / anil

Generally code goes like this
private void LoadControl()
{
TextBox tb = new TextBox();
tb.Location = new Point(500, 100);
tb.Visible = true;
this.Controls.Add(tb);
}

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the process of Serialization?

565


Are arrays value types or reference types?

538


What is Private Constructor? and it’s use? Can you create instance of a class which has Private Constructor?

555


What is the use of getcommandlineargs() method in c#.net?

516


What is using keyword in C#?

572






What is difference between static and constant variable?

530


Suppose two interfaces have same method, so how will you implement these methods in derive class?

489


What is func c#?

504


What is an enumerator c#?

520


What is a console file?

492


Does c# support multilevel inheritance?

485


What is datareader c#?

497


Define MSIL, and how does it works? Why our developers need an appreciation of it if at all?

510


What is xml serialization and deserialization in c#?

486


Define multicast delegate? How it be used?

601