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 |
C# provides a default constructor for me. I write a constructor that takes a string as a parameter, but want to keep the no parameter one. How many constructors should I write?
What are the differences between a class and a struct?
Which are access modifiers available in c#?
Why do we need structs in c#?
What is the different types of private assembly and shared assembly?
What are the fundamental principles of oo programming?
What is a Managed Code??
What is marshalling and what are different kinds of marshalling?
What is encapsulation in csharp?
How do I do implement a trace?
Can you create sealed abstract class in c#?
Why do we need serialization?