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 |
What are custom exceptions?
What does == mean in c sharp?
What's the difference between class and object?
What is yield break in c#?
How do I create a multilanguage?
Explain the difference between .net and c#?
Define mutex in C#?
When Doveloped C#
How do you read an Excel sheet in C#?
What is a Managed Code??
Helo , Help Me , Help Me About : C# Windows Application - Network How To Manage IP Client's Accessiblity To The Internet Share concise Substitute , Minor ISA Server
From a versioning perspective, what are the drawbacks of extending an interface as opposed to extending a class?
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)