Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / KeyPressEvent.cs / 1305376 / KeyPressEvent.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Windows.Forms { using System.Diagnostics; using System; using System.Drawing; using System.ComponentModel; using Microsoft.Win32; ////// /// [System.Runtime.InteropServices.ComVisible(true)] public class KeyPressEventArgs : EventArgs { ////// Provides data for the ////// event. /// /// /// Contains the character of the current KeyPress event. /// private char keyChar; ////// /// Determines if this event has been handled by a handler. If handled, the /// key event will not be sent along to Windows. If not handled, the event /// will be sent to Windows for default processing. /// private bool handled; ////// /// public KeyPressEventArgs(char keyChar) { this.keyChar = keyChar; } ////// Initializes a new /// instance of the ////// class. /// /// /// public char KeyChar { get { return keyChar; } set { keyChar = value; } } ////// Gets the character corresponding to the key /// pressed. /// ////// /// public bool Handled { get { return handled; } set { handled = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// Gets or sets a value indicating whether the ////// event was handled. /// // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Windows.Forms { using System.Diagnostics; using System; using System.Drawing; using System.ComponentModel; using Microsoft.Win32; ////// /// [System.Runtime.InteropServices.ComVisible(true)] public class KeyPressEventArgs : EventArgs { ////// Provides data for the ////// event. /// /// /// Contains the character of the current KeyPress event. /// private char keyChar; ////// /// Determines if this event has been handled by a handler. If handled, the /// key event will not be sent along to Windows. If not handled, the event /// will be sent to Windows for default processing. /// private bool handled; ////// /// public KeyPressEventArgs(char keyChar) { this.keyChar = keyChar; } ////// Initializes a new /// instance of the ////// class. /// /// /// public char KeyChar { get { return keyChar; } set { keyChar = value; } } ////// Gets the character corresponding to the key /// pressed. /// ////// /// public bool Handled { get { return handled; } set { handled = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// Gets or sets a value indicating whether the ////// event was handled. ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EntityDataSourceWrapper.cs
- MouseActionConverter.cs
- PropertyEmitter.cs
- Evaluator.cs
- InstallerTypeAttribute.cs
- IPHostEntry.cs
- BaseConfigurationRecord.cs
- HotSpot.cs
- input.cs
- MailWriter.cs
- Floater.cs
- DataGridState.cs
- RegularExpressionValidator.cs
- LocalizationParserHooks.cs
- EnlistmentTraceIdentifier.cs
- FileDataSourceCache.cs
- Vector3DConverter.cs
- HtmlUtf8RawTextWriter.cs
- OleDbDataAdapter.cs
- XMLSchema.cs
- NetMsmqSecurityMode.cs
- isolationinterop.cs
- ResourceIDHelper.cs
- _RegBlobWebProxyDataBuilder.cs
- ServerType.cs
- EncryptedXml.cs
- ArrayList.cs
- DBParameter.cs
- InvalidDataException.cs
- CodePrimitiveExpression.cs
- StatusBarItem.cs
- SecurityContext.cs
- SiteMapHierarchicalDataSourceView.cs
- PrintPreviewControl.cs
- BaseValidator.cs
- controlskin.cs
- TargetParameterCountException.cs
- DiscriminatorMap.cs
- SHA256Managed.cs
- XmlSchemaInfo.cs
- DoubleSumAggregationOperator.cs
- PropertyGroupDescription.cs
- SafeRightsManagementSessionHandle.cs
- Mappings.cs
- DataGridClipboardCellContent.cs
- PermissionSetEnumerator.cs
- BitmapSizeOptions.cs
- MatchingStyle.cs
- Translator.cs
- ObjectListCommandsPage.cs
- InteropAutomationProvider.cs
- CompilerGeneratedAttribute.cs
- HashHelper.cs
- SatelliteContractVersionAttribute.cs
- OleDbDataAdapter.cs
- DataBindingExpressionBuilder.cs
- XmlDataImplementation.cs
- TemplateControlCodeDomTreeGenerator.cs
- ListViewContainer.cs
- ProcessManager.cs
- WindowsScroll.cs
- HtmlInputHidden.cs
- NativeMethods.cs
- SoapCodeExporter.cs
- CreateUserErrorEventArgs.cs
- FontConverter.cs
- TransformerInfo.cs
- TextServicesCompartmentEventSink.cs
- RootBrowserWindowAutomationPeer.cs
- ComplexLine.cs
- RequestBringIntoViewEventArgs.cs
- BCLDebug.cs
- BlockCollection.cs
- GacUtil.cs
- CqlBlock.cs
- TransformedBitmap.cs
- UniqueIdentifierService.cs
- TypeInitializationException.cs
- TemplateComponentConnector.cs
- SystemIPGlobalStatistics.cs
- Operators.cs
- ValueConversionAttribute.cs
- CheckBoxRenderer.cs
- FixedPageAutomationPeer.cs
- WorkflowLayouts.cs
- Compiler.cs
- BufferModeSettings.cs
- Interlocked.cs
- KeyPressEvent.cs
- NetworkInterface.cs
- Base64Decoder.cs
- ConfigurationErrorsException.cs
- PowerModeChangedEventArgs.cs
- DllNotFoundException.cs
- Int16.cs
- ParameterRetriever.cs
- IntMinMaxAggregationOperator.cs
- XmlSerializationWriter.cs
- TokenBasedSet.cs
- SuppressIldasmAttribute.cs