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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is eager loading in c#?

465


What is attribute and reflection in c#?

474


Explain why do I get an error (cs1006) when trying to declare a method without specifying a return type?

471


How to achieve polymorphism in c#?

542


What is exe in c#?

493






What is the difference between System.console.WriteLine() and System.console.Write() function?example?

579


What is datagrid c#?

472


How do I unload an assembly?

517


Explain About .Net remoting

565


Can we extend sealed class in c#?

488


What is #region in c#?

500


What are actions in c#?

483


Is a char?

456


What can you do as a .net developer?

496


How to find type of variable?

540