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 ienumerable and iqueryable?

506


What do you mean by saying a "class is a reference type"?

510


What is an escape sequence in c#?

509


Why is xml called extensible?

503


What is virtual in c#?

480






What is c# console application?

483


What is an int in c#?

525


What is asp net in c#?

526


What are Namespaces?

561


Which is faster list or dictionary in c#?

571


Write down the c# syntax to catch an exception

525


Is unboxing an implicit conversion?

540


Is and as in c#?

511


What is property in c#?

538


What language do desktop applications use?

480