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 |
Can multiple catch blocks be executed?
Difference between string and stringbuilder?
What is an inheritance in c#?
What are extension methods and where can we use them?
What is the root element of an xml file?
What is difference between value and reference types?
int a = '3' + '4'; char n = (char)a; What will be answer of n?
How do you clear a list in c#?
How can you sort strings in array that are passed to method as arguments?
When you inherit a protected class-level variable, who is it available to?
What Is A Multicast Delegate?
How do you name a variable in c#?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)