File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
cpp/VS_Snippets_Winforms/System.Windows.Forms.Control.DoDragDrop/CPP
csharp/VS_Snippets_Winforms/System.Windows.Forms.Control.DoDragDrop/CS
visualbasic/VS_Snippets_Winforms/System.Windows.Forms.Control.DoDragDrop/VB Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ namespace Snip_DragNDrop
195195 // Set the effect based upon the KeyState.
196196 if ( (e->KeyState & (8 + 32 )) == (8 + 32 ) && ((e->AllowedEffect & DragDropEffects::Link) == DragDropEffects::Link) )
197197 {
198- // KeyState 8 + 32 = CTL + ALT
198+ // KeyState 8 + 32 = CTRL + ALT
199199 // Link drag-and-drop effect.
200200 e->Effect = DragDropEffects::Link;
201201 }
@@ -214,7 +214,7 @@ namespace Snip_DragNDrop
214214 else
215215 if ( (e->KeyState & 8 ) == 8 && ((e->AllowedEffect & DragDropEffects::Copy) == DragDropEffects::Copy) )
216216 {
217- // CTL KeyState for copy.
217+ // CTRL KeyState for copy.
218218 e->Effect = DragDropEffects::Copy;
219219 }
220220 else
Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ private void ListDragTarget_DragOver(object sender, DragEventArgs e)
199199 if ( ( e . KeyState & ( 8 + 32 ) ) == ( 8 + 32 ) &&
200200 ( e . AllowedEffect & DragDropEffects . Link ) == DragDropEffects . Link )
201201 {
202- // KeyState 8 + 32 = CTL + ALT
202+ // KeyState 8 + 32 = CTRL + ALT
203203
204204 // Link drag-and-drop effect.
205205 e . Effect = DragDropEffects . Link ;
@@ -219,7 +219,7 @@ private void ListDragTarget_DragOver(object sender, DragEventArgs e)
219219 else if ( ( e . KeyState & 8 ) == 8 &&
220220 ( e . AllowedEffect & DragDropEffects . Copy ) == DragDropEffects . Copy )
221221 {
222- // CTL KeyState for copy.
222+ // CTRL KeyState for copy.
223223 e . Effect = DragDropEffects . Copy ;
224224 }
225225 else if ( ( e . AllowedEffect & DragDropEffects . Move ) == DragDropEffects . Move )
Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ Public NotInheritable Class Form1
181181 ' Set the effect based upon the KeyState.
182182 If ((e.KeyState And ( 8 + 32 )) = ( 8 + 32 ) And
183183 (e.AllowedEffect And DragDropEffects.Link) = DragDropEffects.Link) Then
184- ' KeyState 8 + 32 = CTL + ALT
184+ ' KeyState 8 + 32 = CTRL + ALT
185185
186186 ' Link drag-and-drop effect.
187187 e.Effect = DragDropEffects.Link
@@ -201,7 +201,7 @@ Public NotInheritable Class Form1
201201 ElseIf ((e.KeyState And 8 ) = 8 And
202202 (e.AllowedEffect And DragDropEffects.Copy) = DragDropEffects.Copy) Then
203203
204- ' CTL KeyState for copy.
204+ ' CTRL KeyState for copy.
205205 e.Effect = DragDropEffects.Copy
206206
207207 ElseIf ((e.AllowedEffect And DragDropEffects.Move) = DragDropEffects.Move) Then
You can’t perform that action at this time.
0 commit comments