In part of my code, seperate to the GUI i need the user to make a choice, ideally by clicking on a choice of (my) usercontrols.
I noticed that the method for doing a drag-drop operation is like this:
The code in handle dragdrop isn't reached until the user has done the necessisary drag, and let go (i.e. DoDragDrop seems to wait for the user interaction).Code:Card_MouseDown(object sender, MouseEventArgs e) { // Start the dragging process DragDropEffects effect = DoDragDrop(sender,DragDropEffects.Copy); //handle dragdrop }
Is there some way i could do something similar to this for a method of selecting between my user controls.
e.g.
Thanks for any help.Code:Control OneSelectedControl = GetUserSelection(); Control SecondSelectedControl = GetUserSelection();





Reply With Quote