|
-
Oct 4th, 2006, 11:41 AM
#1
Thread Starter
New Member
drag from label to picture box
Hello Everybody!!
I`m here struggling with drag and drop in VB.NET. I have two label "label1 and label2" and i have picture in picture box. I want drag labels to the picture box. I want to drag both labels to the picture box. Is this possible to do it??
Thank you in advance!!
-
Oct 4th, 2006, 05:58 PM
#2
Re: drag from label to picture box
Have you checked out the drag and drop examples on MSDN? Have you got them working to understand the principles involved? Once you understand the principles involved, then you can apply them to other situations. Assuming that you have tried those examples and got them working, the object you pass to the first argument of DoDragDrop in the MouseDown event handler is the object you get back from the e.Data property in DragDrop event handler. Most examples will drag text, so they pass a string in and get a string out. If you want to drag a Label then you simply pass a Label in and you'll get a Label out.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|