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 |
Why do we need constructor in c#?
What are properties in C#?
How can you sort the elements of the array in descending order?
1 Answers Junosource, Siebel Systems, Wipro,
What does immutable mean in c#?
What is using in c#?
Hi all,I am the beginner. Please tell use of finally block.
What are Namespaces?
Write a C# program to find the Factorial of n
what is the difference between int and Int32?
What is a static field?
Why objects are stored in heap in c#?
please exaplain gridview and what are the process available for it. how to add the row number automatically? is it possible to add child controls ?
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)