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 |
Describe an abstract class?
Are private class-level variables inherited?
5 Answers HCL, Siebel Systems, Visual Soft,
Types of Unboxing?
Can we maintain state in webservice?
How to find Percentage, name ,College from a resume or document ? How to export these values to other page in C#?
What is strong data type in c#?
Is there any sample c# code for simple threading?
What are the different ways of method can be overloaded?
Are c# generics the same as c++ templates?
Can a constructor have a return type?
how to print invert pyramid in c#
What is delegates in c# and uses of delegates?
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)