Click here to Skip to main content
15,910,981 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I know this is getting annoying but I am trying to figure out the best way to do this. So Creating labels from a button press, I changed my mind to have a label on the left hand corner of the form and whenever I drag it on a control such as imagebox I want it to create a new label. I got 2 problems here

1- How do i create a label on the fly by dragging a label on an object

1- How do I create a label itself on a dragdrop event cuz I only get text attribute but not the label itself

2- How do i apply dragdrop to the new labels created?
Posted
Updated 27-May-10 7:39am
v2

1 solution

Try adding it to the form's control collection instead, and remember to set the z-order of the label higher than the z-order of the Imagebox
 
Share this answer
 
Comments
Dalek Dave 27-May-10 9:58am    
Ha Ha!

I did the same thing yonks ago, (Re Z-Order), took ages to figure out what was wrong!
TolgaCiftci 27-May-10 11:45am    
I used Bring to front is it the same with Z-order?
Johnny J. 27-May-10 12:00pm    
Yes, that should work

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