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
- BlobPersonalizationState.cs
- DispatchChannelSink.cs
- WindowsAltTab.cs
- CallSiteHelpers.cs
- SettingsPropertyValueCollection.cs
- PerformanceCounterPermissionEntry.cs
- ReferenceSchema.cs
- CategoryAttribute.cs
- Logging.cs
- QuaternionValueSerializer.cs
- RenderContext.cs
- ObjectViewQueryResultData.cs
- OleDbRowUpdatingEvent.cs
- XmlSchemaImporter.cs
- _ProxyChain.cs
- PopOutPanel.cs
- TextOutput.cs
- IndicCharClassifier.cs
- EntityRecordInfo.cs
- ElementUtil.cs
- ParentUndoUnit.cs
- Slider.cs
- MergeFailedEvent.cs
- SerializationStore.cs
- WebEventTraceProvider.cs
- ClassHandlersStore.cs
- CharEntityEncoderFallback.cs
- PathSegment.cs
- ResourcePool.cs
- StyleSelector.cs
- cache.cs
- SystemPens.cs
- MenuAutomationPeer.cs
- TableLayout.cs
- SoapWriter.cs
- XsltConvert.cs
- TextEditorTyping.cs
- AssertFilter.cs
- AuthorizationRule.cs
- TextEditorSpelling.cs
- ResourceKey.cs
- XslAst.cs
- XpsSerializerWriter.cs
- SharedUtils.cs
- MenuScrollingVisibilityConverter.cs
- RequestSecurityTokenResponseCollection.cs
- ResourceManagerWrapper.cs
- InvalidCastException.cs
- FunctionDetailsReader.cs
- EdmProperty.cs
- CLRBindingWorker.cs
- XhtmlBasicLabelAdapter.cs
- ProfessionalColors.cs
- RootBuilder.cs
- BitmapMetadataBlob.cs
- SortAction.cs
- ApplyTemplatesAction.cs
- CompiledWorkflowDefinitionContext.cs
- SqlCharStream.cs
- SelectionProviderWrapper.cs
- InputLanguageSource.cs
- ErrorActivity.cs
- OleDbPermission.cs
- ListChangedEventArgs.cs
- EditingScopeUndoUnit.cs
- CodeMemberMethod.cs
- OleDbStruct.cs
- Utils.cs
- PropertyOrder.cs
- DataSourceHelper.cs
- OutputCache.cs
- ZipIOLocalFileHeader.cs
- MimeObjectFactory.cs
- Codec.cs
- DirectionalLight.cs
- NameScope.cs
- DesignerResources.cs
- returneventsaver.cs
- PathData.cs
- HttpListenerRequest.cs
- FixedSOMPage.cs
- UInt32Converter.cs
- HttpDebugHandler.cs
- WebServicesInteroperability.cs
- Matrix.cs
- ViewStateAttachedPropertyFeature.cs
- SkinBuilder.cs
- Durable.cs
- DesignerOptionService.cs
- SqlConnectionPoolGroupProviderInfo.cs
- OdbcCommand.cs
- SimpleWorkerRequest.cs
- ArgIterator.cs
- XmlDataDocument.cs
- TdsParser.cs
- Panel.cs
- LocalizableResourceBuilder.cs
- SplitterCancelEvent.cs
- GridPatternIdentifiers.cs
- EventLogTraceListener.cs