get mouse_over on PBox while Dragging label onto PBox

DragLeave DragEnter DragDrop DragOver CursorChanged GotFocus

Nothing works while dragging... i also have PictureBox1.AllowDrop = True

i need to control the event b4 the user does a mouse up on the label....

basically i need to make sure the 20,20 label is on the pbox b4 releasing

the image in the label is the same as the cursor, when a use click and drags the label/image i set label visible false and change the cursor to that image
when the user does a mouse_up over the Pbox i swap the cursor with the label/image.

Thanks
LVL 7
5thcavAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

eventprostrategiesCommented:
I'm not sure I understand what you're trying to do.  If you want something about the picturebox you're dragging over to change while dragging over, try DragEnter/DragLeave or MouseMove.

May not have much to do with your problem, but this post dealt with dragging over pictureboxes and such ... http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/VB_DOT_NET/Q_21473294.html

I see that you're swapping the cursor with the label/image here ... but i don't understand what the problem you're having is?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
5thcavAuthor Commented:
im bulding an array of labels, with custom mouse events, when dragging a lable from its groupbox onto my picturebox that is also in another groupbox my picturebox events are not firing such as DragLeave DragEnter DragDrop DragOver CursorChanged GotFocus. i need to see if the label is over the picturebox b4 i allow the mouse up event from the label drag. this way i can return the label to its group box its not over the pbox. the label is set to drop in the same x,y location of the mouse up.

if i simply drag a label and use    Cursor.Clip = Me.RectangleToScreen(New Rectangle(PictureBox1.Location, PictureBox1.Size)) the label wont go pase
     
5thcavAuthor Commented:
i wasnt ready to post my last message :)

I removed my label array (i only have 4 labels) thought maybe it was my custom events, but it wasnt

CompTIA Network+

Prepare for the CompTIA Network+ exam by learning how to troubleshoot, configure, and manage both wired and wireless networks.

5thcavAuthor Commented:
if i can get my Cursor.Clip working i should be all set.. it seems to be thinking my picturebox is somewhere else
5thcavAuthor Commented:
       Me.Cursor = New Cursor(Cursor.Current.Handle)
        Cursor.Position = New Point(PictureBox1.Location.X - 10, PictureBox1.Location.Y - 10)
        Cursor.Clip = New Rectangle(PictureBox1.Location, PictureBox1.Size)

this should work but does not
5thcavAuthor Commented:
 Cursor.Clip = PictureBox1.RectangleToScreen(PictureBox1.ClientRectangle)

this worked,, im all set,,, thanks
     
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.