Results 1 to 5 of 5

Thread: showing an image while its dragging

  1. #1

    Thread Starter
    Frenzied Member ae_jester's Avatar
    Join Date
    Jun 2001
    Location
    Kitchener Ontario Canada Earth
    Posts
    1,545

    showing an image while its dragging

    Is it possible to show the image that is being dragged with drag & drop???

    All it seems to do is show an outline of the image.

  2. #2
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    Umm I never used that little Drag and Drop thingie, so I cant help you much with that
    this is the way I always moved a picturebox or something, if you dont mind using it. Just start a new project and copy the whole thing in there. You need a picturebox too

    VB Code:
    1. Option Explicit
    2.  
    3. Dim isDragging As Boolean
    4. Dim StartX As Single, StartY As Single
    5.  
    6. Private Sub Form_Load()
    7.     Me.ScaleMode = vbPixels
    8.     Picture1.ScaleMode = vbPixels
    9. End Sub
    10.  
    11. Private Sub Picture1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
    12.     isDragging = True
    13.     StartX = X
    14.     StartY = Y
    15. End Sub
    16.  
    17. Private Sub Picture1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    18.     If isDragging Then
    19.         Picture1.Move Picture1.Left - StartX + X, Picture1.Top - StartY + Y
    20.     End If
    21. End Sub
    22.  
    23. Private Sub Picture1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
    24.     isDragging = False
    25. End Sub
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  3. #3

    Thread Starter
    Frenzied Member ae_jester's Avatar
    Join Date
    Jun 2001
    Location
    Kitchener Ontario Canada Earth
    Posts
    1,545
    I was afraid that was the only way. That will complicate things a lot more now with all the crap on my forms :-)

    Oh well, thanx for responding.

  4. #4
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    UMM!! I didnt say that;s the only way, I just do it that way... there might be a way to do it with drag and drop too
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  5. #5

    Thread Starter
    Frenzied Member ae_jester's Avatar
    Join Date
    Jun 2001
    Location
    Kitchener Ontario Canada Earth
    Posts
    1,545
    yeah well I cant find anything on msdn except for showing a little icon during the dragging process, so I guess I'm out of luck there

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