16 references to KeyPressEventArgs
System.Windows.Forms (2)
System\Windows\Forms\Control.cs (2)
8860kpe = new KeyPressEventArgs((char)(int)m.WParamInternal); 8872kpe = new KeyPressEventArgs((char)(int)m.WParamInternal);
System.Windows.Forms.Tests (13)
System\Windows\Forms\KeyPressEventArgsTests.cs (3)
14KeyPressEventArgs e = new(keyChar); 24KeyPressEventArgs e = new('b') 36KeyPressEventArgs e = new('a')
System\Windows\Forms\LabelTests.cs (1)
793KeyPressEventArgs keyPressEventArgs = new KeyPressEventArgs('A');
System\Windows\Forms\ToolStripControlHostTests.cs (1)
4068c.OnKeyPress(new KeyPressEventArgs('a'));
System\Windows\Forms\TreeViewTests.cs (6)
5850yield return new object[] { true, new KeyPressEventArgs('\0'), true }; 5851yield return new object[] { true, new KeyPressEventArgs('a'), true }; 5852yield return new object[] { true, new KeyPressEventArgs(' '), true }; 5854yield return new object[] { false, new KeyPressEventArgs('\0'), false }; 5855yield return new object[] { false, new KeyPressEventArgs('a'), false }; 5856yield return new object[] { false, new KeyPressEventArgs(' '), true };
System\Windows\Forms\UpDownBaseTests.cs (2)
2430yield return new object[] { null, new KeyPressEventArgs('a') }; 2431yield return new object[] { null, new KeyPressEventArgs('a') };
System.Windows.Forms.TestUtilities (1)
CommonTestHelperEx.cs (1)
134new('1')