Click here to Skip to main content
15,917,059 members
Home / Discussions / C#
   

C#

 
QuestionPreventing InvalidDeploymentException exceptions Pin
Jim Crafton9-Dec-09 4:16
Jim Crafton9-Dec-09 4:16 
AnswerRe: Preventing InvalidDeploymentException exceptions Pin
Paulo Zemek9-Dec-09 5:24
Paulo Zemek9-Dec-09 5:24 
GeneralRe: Preventing InvalidDeploymentException exceptions Pin
Jim Crafton9-Dec-09 5:30
Jim Crafton9-Dec-09 5:30 
AnswerRe: Preventing InvalidDeploymentException exceptions Pin
N a v a n e e t h9-Dec-09 14:58
N a v a n e e t h9-Dec-09 14:58 
QuestionHow to get first and last date given a year and a weeknr Pin
livez9-Dec-09 3:30
livez9-Dec-09 3:30 
AnswerRe: How to get first and last date given a year and a weeknr Pin
Richard MacCutchan9-Dec-09 3:42
mveRichard MacCutchan9-Dec-09 3:42 
GeneralRe: How to get first and last date given a year and a weeknr Pin
livez9-Dec-09 3:49
livez9-Dec-09 3:49 
GeneralRe: How to get first and last date given a year and a weeknr Pin
Richard MacCutchan9-Dec-09 4:06
mveRichard MacCutchan9-Dec-09 4:06 
GeneralRe: How to get first and last date given a year and a weeknr Pin
livez9-Dec-09 4:43
livez9-Dec-09 4:43 
GeneralRe: How to get first and last date given a year and a weeknr Pin
Richard MacCutchan9-Dec-09 5:03
mveRichard MacCutchan9-Dec-09 5:03 
GeneralRe: How to get first and last date given a year and a weeknr Pin
livez9-Dec-09 20:06
livez9-Dec-09 20:06 
GeneralRe: How to get first and last date given a year and a weeknr Pin
livez9-Dec-09 23:00
livez9-Dec-09 23:00 
AnswerRe: How to get first and last date given a year and a weeknr Pin
Abhinav S9-Dec-09 4:03
Abhinav S9-Dec-09 4:03 
AnswerRe: How to get first and last date given a year and a weeknr Pin
OriginalGriff9-Dec-09 4:04
mveOriginalGriff9-Dec-09 4:04 
AnswerRe: How to get first and last date given a year and a weeknr Pin
David Skelly9-Dec-09 4:14
David Skelly9-Dec-09 4:14 
GeneralRe: How to get first and last date given a year and a weeknr Pin
livez9-Dec-09 4:17
livez9-Dec-09 4:17 
GeneralRe: How to get first and last date given a year and a weeknr Pin
Richard MacCutchan9-Dec-09 4:23
mveRichard MacCutchan9-Dec-09 4:23 
GeneralRe: How to get first and last date given a year and a weeknr Pin
David Skelly9-Dec-09 4:25
David Skelly9-Dec-09 4:25 
GeneralRe: How to get first and last date given a year and a weeknr Pin
Richard MacCutchan9-Dec-09 5:04
mveRichard MacCutchan9-Dec-09 5:04 
QuestionHow to make FolderBrowserDialog TopMost window. Pin
Calla9-Dec-09 3:09
Calla9-Dec-09 3:09 
AnswerRe: How to make FolderBrowserDialog TopMost window. Pin
Calla9-Dec-09 3:20
Calla9-Dec-09 3:20 
QuestionDo not close ContextMenuStrip Pin
eyalle9-Dec-09 2:14
eyalle9-Dec-09 2:14 
AnswerRe: Do not close ContextMenuStrip Pin
BillWoodruff9-Dec-09 12:19
professionalBillWoodruff9-Dec-09 12:19 
Hi Eyal,

I have a lot of experience working with TreeViews. Reading your description I can't really figure out what the relationship of the ContextMenuStrip and moving/copying/cancelling drag is in relationship to what you are doing with nodes.

Are you implying you want to put up a context menu strip during a drag operation : then let the user select move/copy/cancel from the context menu ?

If this is correct, would you want to put this context menu up at the moment the drag started (just after the call to 'DoDragDrop) ... or maybe when the drop target has been selected and DragDrop is being executed ?

Please describe further what your goal is here.

Using key combinations to determine whether a Drag Move or Drag Copy is being done is a fairly standard practice (usually detected in the source's ItemDrag event).

And, of course, you have the QueryContinueDrag event to use to allow cancelling in the DragSource's code in response to mouse or key events : [^]

best, Bill

"Many : not conversant with mathematical studies, imagine that because it [the Analytical Engine] is to give results in numerical notation, its processes must consequently be arithmetical, numerical, rather than algebraical and analytical. This is an error. The engine can arrange and combine numerical quantities as if they were letters or any other general symbols; and it fact it might bring out its results in algebraical notation, were provisions made accordingly." Ada, Countess Lovelace, 1844

GeneralRe: Do not close ContextMenuStrip Pin
eyalle9-Dec-09 19:59
eyalle9-Dec-09 19:59 
GeneralRe: Do not close ContextMenuStrip Pin
BillWoodruff11-Dec-09 5:06
professionalBillWoodruff11-Dec-09 5:06 

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.