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
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 |
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 |
Are there functions in c#?
What is asenumerable in c#?
Is string a primitive data type in c#?
So how do you retrieve the customized properties of a .NET application from XML .config file? Can you automate this process ?
What is type safe in c#?
Explain the constructor in c#.
What is the c# equivalent of c++ catch (...), Which was a catch-all statement for any possible exception?
What is mean by c#?
What is a Assembly?
What is the difference between int.parse and int.tryparse methods?
What is data hiding in c#?
How is a loop recorder monitored?