Click here to Skip to main content
15,891,567 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
hi
I want to click on a label other then a new label is made And this work be continued
Posted
Updated 23-Oct-10 22:54pm
v2
Comments
Sandeep Mewara 24-Oct-10 4:59am    
Not clear.
shakil0304003 24-Oct-10 5:00am    
Not Clear.
shakil0304003 24-Oct-10 5:01am    
Use google 1st.

Have you tried something like this?
private void Label_Click(object sender, EventArgs e) {
 Label l = new Label();
 l.Left = 100;
 l.Top = 100;
 l.Text = "new label";
 this.Controls.Add(l);
}
 
Share this answer
 
Comments
Sivaraman Dhamodharan 26-Oct-10 6:01am    
Correct. But the top left position should be relative to the Sender
Are you looking for a solution in C# or C?
You have included both in your tag.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900