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 we write one page in c# and other in vb in one application ?
How will U encapsulate button trigger event into text_box event of Pressing Enter key?
What are the different types of constructors in c#?
Different between method overriding and method overloading?
What is difference between string and stringbuffer in c#?
What does writeline mean?
What is an int in c#?
What is default access modifier for class in c#?
Name some string escape sequences in c#.
Give examples for reference types?
What is expression tree in c#?
What is the difference between ienumerable and icollection?
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)