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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / dhara

public void labelcontrol()
{
label l=new label();
l.visible=true;
l.location =new point(100,100);
l.text="Name";
this.controls.add(l);
}
FOR CREATING LABEL AT RUNTIME.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

Describe the parts of assembly.

0 Answers  


What is a destructor in c#?

0 Answers  


Is dll a library?

0 Answers  


What is the difference between an implicit conversion and an explicit conversion?

0 Answers  


When should you use generics?

0 Answers  






Explain the different types of delegates used in c#.

0 Answers  


What is the use of New Keyword

15 Answers  


Why do we need interfaces?

2 Answers   HCL,


How?s method overriding different from overloading?

4 Answers  


Explain acid rule of thumb for transactions in c#.

0 Answers  


What is a void c#?

0 Answers  


What do u mean by delegation of authority?

0 Answers  


Categories