Skip to content

Commit a2fd5a7

Browse files
authored
Correct typo - CTL -> CTRL (dotnet#7304)
1 parent 0e12f0a commit a2fd5a7

File tree

3 files changed

+6
-6
lines changed
  • samples/snippets
    • 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

3 files changed

+6
-6
lines changed

samples/snippets/cpp/VS_Snippets_Winforms/System.Windows.Forms.Control.DoDragDrop/CPP/form1.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.Control.DoDragDrop/CS/form1.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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)

samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.Control.DoDragDrop/VB/form1.vb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)