Results 1 to 2 of 2

Thread: drag from label to picture box

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2006
    Posts
    8

    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!!

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width