View Single Post
Old Apr 17th, 2008, 3:58 AM   #11
beni_dude
Newbie
 
beni_dude's Avatar
 
Join Date: Apr 2008
Posts: 19
Rep Power: 0 beni_dude is on a distinguished road
Re: Dragging and Dropping

First thing you are right about this being in some new kind of thread but I wasn't sure because it was already on the subject of d&d, If you ask me start an new thread I will do so Happily!

I'm using right now visual studio 2008 and its an full version.

What I'm trying to do is this:
I want to create an win form that has in it lets say 12 labels and 12 text box and I want the user to d&d the right label in the right text box (I already created something like that in VB6 (but that was a bit easier because their it wasn't hard to create an array of controls) but it wasn't with the d&d option!

it sounds simple enough, after all that I need to do is make sure that once the user clicks on the label (or press on it and I think that click event is the one I need to catch ) I will give the control (the label) the x&y location of the mouse and then make sure that he (the user) can drop it only on text box (he can place it in the wrong text box and then he will receive some kind of error message)

It will be really helpfully if some one could find some kind of simple example that shows how to d&d a control in run time! god knows that I TRIED and failed!
__________________
NULL is all around me!
beni_dude is offline   Reply With Quote