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 is data set in c#?
What are the 3 different types of arrays?
While debugging a C# application can you change the value of a variable?
What is the difference between an application domain and a process?
What is wpf application in c#?
What is generic types in c#?
What is overloading with example?
What is .cs file in c#?
Hello Friends..am Mohammed riyash..final year BCA in Jamal Mohamed College 2009. Trichy. My doubt is while connecting SQL2005 Built in Database withing the Visual Studio 2005 Framework.. I am getting the error.. That " An Error occurred and it may be due to , under the default settings of the Server, the connection cannot be established.." But the code works in MS Access for me.. Both in VB.Net and C#.Net am getting the same error.. Any genius please Message me to 9994558822 or mail me.. riyash.ips@gmail.com
What is a namespace server?
What are c# i/o classes? What are the commonly used i/o classes?
What is Partial class? What purpose we use it?