From f6eecd065b814d671750ed0d82f34addf13a4ee8 Mon Sep 17 00:00:00 2001 From: Lucas7yoshi Date: Wed, 20 Oct 2021 00:13:49 -0400 Subject: [PATCH] Correct typo - CTL -> CTRL --- .../System.Windows.Forms.Control.DoDragDrop/CPP/form1.cpp | 4 ++-- .../System.Windows.Forms.Control.DoDragDrop/CS/form1.cs | 4 ++-- .../System.Windows.Forms.Control.DoDragDrop/VB/form1.vb | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/samples/snippets/cpp/VS_Snippets_Winforms/System.Windows.Forms.Control.DoDragDrop/CPP/form1.cpp b/samples/snippets/cpp/VS_Snippets_Winforms/System.Windows.Forms.Control.DoDragDrop/CPP/form1.cpp index 892cb162c55..bbdc1da5e2c 100644 --- a/samples/snippets/cpp/VS_Snippets_Winforms/System.Windows.Forms.Control.DoDragDrop/CPP/form1.cpp +++ b/samples/snippets/cpp/VS_Snippets_Winforms/System.Windows.Forms.Control.DoDragDrop/CPP/form1.cpp @@ -195,7 +195,7 @@ namespace Snip_DragNDrop // Set the effect based upon the KeyState. if ( (e->KeyState & (8 + 32)) == (8 + 32) && ((e->AllowedEffect & DragDropEffects::Link) == DragDropEffects::Link) ) { - // KeyState 8 + 32 = CTL + ALT + // KeyState 8 + 32 = CTRL + ALT // Link drag-and-drop effect. e->Effect = DragDropEffects::Link; } @@ -214,7 +214,7 @@ namespace Snip_DragNDrop else if ( (e->KeyState & 8) == 8 && ((e->AllowedEffect & DragDropEffects::Copy) == DragDropEffects::Copy) ) { - // CTL KeyState for copy. + // CTRL KeyState for copy. e->Effect = DragDropEffects::Copy; } else diff --git a/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.Control.DoDragDrop/CS/form1.cs b/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.Control.DoDragDrop/CS/form1.cs index 48669d58c4a..21c8799d432 100644 --- a/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.Control.DoDragDrop/CS/form1.cs +++ b/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.Control.DoDragDrop/CS/form1.cs @@ -199,7 +199,7 @@ private void ListDragTarget_DragOver(object sender, DragEventArgs e) if ((e.KeyState & (8 + 32)) == (8 + 32) && (e.AllowedEffect & DragDropEffects.Link) == DragDropEffects.Link) { - // KeyState 8 + 32 = CTL + ALT + // KeyState 8 + 32 = CTRL + ALT // Link drag-and-drop effect. e.Effect = DragDropEffects.Link; @@ -219,7 +219,7 @@ private void ListDragTarget_DragOver(object sender, DragEventArgs e) else if ((e.KeyState & 8) == 8 && (e.AllowedEffect & DragDropEffects.Copy) == DragDropEffects.Copy) { - // CTL KeyState for copy. + // CTRL KeyState for copy. e.Effect = DragDropEffects.Copy; } else if ((e.AllowedEffect & DragDropEffects.Move) == DragDropEffects.Move) diff --git a/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.Control.DoDragDrop/VB/form1.vb b/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.Control.DoDragDrop/VB/form1.vb index 2286a990218..da18624c8bf 100644 --- a/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.Control.DoDragDrop/VB/form1.vb +++ b/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.Control.DoDragDrop/VB/form1.vb @@ -181,7 +181,7 @@ Public NotInheritable Class Form1 ' Set the effect based upon the KeyState. If ((e.KeyState And (8 + 32)) = (8 + 32) And (e.AllowedEffect And DragDropEffects.Link) = DragDropEffects.Link) Then - ' KeyState 8 + 32 = CTL + ALT + ' KeyState 8 + 32 = CTRL + ALT ' Link drag-and-drop effect. e.Effect = DragDropEffects.Link @@ -201,7 +201,7 @@ Public NotInheritable Class Form1 ElseIf ((e.KeyState And 8) = 8 And (e.AllowedEffect And DragDropEffects.Copy) = DragDropEffects.Copy) Then - ' CTL KeyState for copy. + ' CTRL KeyState for copy. e.Effect = DragDropEffects.Copy ElseIf ((e.AllowedEffect And DragDropEffects.Move) = DragDropEffects.Move) Then