Click here to Skip to main content
15,900,110 members
Home / Discussions / C#
   

C#

 
QuestionDrag and Drop in C# Pin
wrykyn23-Aug-06 13:02
wrykyn23-Aug-06 13:02 
Hello,

I implemented drag and drop for some of my controls. I did it by having my controls implement IDataObject then using the usual mouse(up,down, move, etc) and drag(drop, leave, etc) events, in other controls/forms to accept the drop.

While the control is being dragged its shown along with the mouse as a small square border with a small + sign next to it (I guess this is default). It looks like the small box is the representation of the control being dragged. I would like to show sometime else as the control is being dragged. I've been looking on MSDN and online and didn't find anything yet (they only talked about how to replace the mouse cursor for the drag operation).

I really would like to avoid creating a form and moving that around with the mouse. Is there some handle to replace the default "object being dragged" state/box with something of my own choice.

Thanks,
Ramanan

"One of the Georges," said Psmith, "I forget which, once said that a
certain number of hours' sleep a day--I cannot recall for the moment how
many--made a man something, which for the time being has slipped my
memory."

AnswerRe: Drag and Drop in C# Pin
Christian Graus23-Aug-06 14:58
protectorChristian Graus23-Aug-06 14:58 
GeneralRe: Drag and Drop in C# Pin
wrykyn24-Aug-06 3:30
wrykyn24-Aug-06 3:30 
QuestionHow To add VS.Net Design Time support for custom control Pin
bradsnobar23-Aug-06 12:17
bradsnobar23-Aug-06 12:17 
AnswerRe: How To add VS.Net Design Time support for custom control Pin
Not Active23-Aug-06 13:25
mentorNot Active23-Aug-06 13:25 
GeneralRe: How To add VS.Net Design Time support for custom control Pin
bradsnobar24-Aug-06 8:46
bradsnobar24-Aug-06 8:46 
QuestionPlease help with a simple regex Pin
Nigor23-Aug-06 11:27
Nigor23-Aug-06 11:27 
AnswerRe: Please help with a simple regex [modified] Pin
Christian Graus23-Aug-06 12:00
protectorChristian Graus23-Aug-06 12:00 
GeneralRe: Please help with a simple regex [modified] Pin
Nigor23-Aug-06 12:45
Nigor23-Aug-06 12:45 
GeneralRe: Please help with a simple regex Pin
Christian Graus23-Aug-06 12:54
protectorChristian Graus23-Aug-06 12:54 
GeneralRe: Please help with a simple regex Pin
Nigor23-Aug-06 13:02
Nigor23-Aug-06 13:02 
GeneralRe: Please help with a simple regex Pin
Ret Orrick23-Aug-06 23:52
Ret Orrick23-Aug-06 23:52 
QuestionHow can we view Class Name sub-list in VC# (available in VB.net)? Pin
ATC23-Aug-06 10:57
ATC23-Aug-06 10:57 
AnswerRe: How can we view Class Name sub-list in VC# (available in VB.net)? Pin
Colin Angus Mackay23-Aug-06 11:32
Colin Angus Mackay23-Aug-06 11:32 
QuestionDataGridView unbound column Pin
~~~Johnny~~~23-Aug-06 10:41
~~~Johnny~~~23-Aug-06 10:41 
Questiongenerating random number in C# Pin
minskyyy23-Aug-06 9:23
minskyyy23-Aug-06 9:23 
AnswerRe: generating random number in C# Pin
Jon Sagara23-Aug-06 9:40
Jon Sagara23-Aug-06 9:40 
AnswerRe: generating random number in C# [modified] Pin
Nader Elshehabi23-Aug-06 9:41
Nader Elshehabi23-Aug-06 9:41 
GeneralRe: generating random number in C# Pin
Dave Kreskowiak23-Aug-06 9:55
mveDave Kreskowiak23-Aug-06 9:55 
GeneralRe: generating random number in C# Pin
Nader Elshehabi23-Aug-06 10:02
Nader Elshehabi23-Aug-06 10:02 
GeneralRe: generating random number in C# Pin
Colin Angus Mackay23-Aug-06 11:37
Colin Angus Mackay23-Aug-06 11:37 
JokeRe: generating random number in C# Pin
Nader Elshehabi23-Aug-06 12:34
Nader Elshehabi23-Aug-06 12:34 
QuestionGenerics in an Attribute? Pin
Ista23-Aug-06 9:17
Ista23-Aug-06 9:17 
AnswerRe: Generics in an Attribute? Pin
Nader Elshehabi23-Aug-06 9:51
Nader Elshehabi23-Aug-06 9:51 
QuestionWeb Browser Control link re-direction Pin
Josiah Smith23-Aug-06 8:57
Josiah Smith23-Aug-06 8:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.