Code:
/ 4.0 / 4.0 / untmp / 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. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlEventCache.cs
- DataBindingCollection.cs
- RectangleConverter.cs
- BufferBuilder.cs
- DBConcurrencyException.cs
- PersonalizationStateInfoCollection.cs
- InputBindingCollection.cs
- AbandonedMutexException.cs
- DefaultValueMapping.cs
- RoutedEventHandlerInfo.cs
- HttpInputStream.cs
- WebBrowsableAttribute.cs
- NamespaceInfo.cs
- DelegatingConfigHost.cs
- DataGridViewRowHeaderCell.cs
- DataGrid.cs
- TreeWalkHelper.cs
- WebPartDisplayModeCancelEventArgs.cs
- EntityException.cs
- ApplicationTrust.cs
- MexHttpBindingElement.cs
- Header.cs
- SHA512CryptoServiceProvider.cs
- AssemblyCollection.cs
- SchemaDeclBase.cs
- WebPartHelpVerb.cs
- TrackingMemoryStreamFactory.cs
- MatrixValueSerializer.cs
- TransformDescriptor.cs
- CryptoStream.cs
- XPathBuilder.cs
- ToolBarOverflowPanel.cs
- configsystem.cs
- DataListItemEventArgs.cs
- TextBreakpoint.cs
- StoreContentChangedEventArgs.cs
- XmlSchemaIdentityConstraint.cs
- DetailsViewPageEventArgs.cs
- DNS.cs
- TranslateTransform3D.cs
- ToolStripDropDownMenu.cs
- FontSizeConverter.cs
- StreamHelper.cs
- SizeAnimationBase.cs
- Queue.cs
- IndexedSelectQueryOperator.cs
- ChannelTerminatedException.cs
- RSAOAEPKeyExchangeDeformatter.cs
- ContextMenuStrip.cs
- RecognizerInfo.cs
- _ListenerResponseStream.cs
- ImageKeyConverter.cs
- COAUTHIDENTITY.cs
- InputGestureCollection.cs
- ParserContext.cs
- _ServiceNameStore.cs
- ListParaClient.cs
- ImageCollectionEditor.cs
- MarkupProperty.cs
- SmiMetaData.cs
- HostedImpersonationContext.cs
- NonSerializedAttribute.cs
- DbMetaDataColumnNames.cs
- PropertyPathConverter.cs
- ComNativeDescriptor.cs
- XmlComplianceUtil.cs
- ZoneMembershipCondition.cs
- SmiRecordBuffer.cs
- Context.cs
- Section.cs
- WebPartCatalogAddVerb.cs
- ColumnCollection.cs
- AutomationIdentifier.cs
- Normalization.cs
- WorkflowMessageEventArgs.cs
- Mapping.cs
- FileDetails.cs
- Typeface.cs
- XamlToRtfParser.cs
- ActivityExecutorSurrogate.cs
- XmlCountingReader.cs
- LambdaCompiler.cs
- LZCodec.cs
- LoadedEvent.cs
- TextEffectResolver.cs
- ClipboardData.cs
- __Error.cs
- StaticExtensionConverter.cs
- HitTestFilterBehavior.cs
- ApplicationSettingsBase.cs
- SettingsPropertyNotFoundException.cs
- arabicshape.cs
- NestPullup.cs
- TimerExtension.cs
- dbenumerator.cs
- SafeCertificateStore.cs
- UrlMappingsSection.cs
- FieldTemplateUserControl.cs
- TableLayoutSettingsTypeConverter.cs
- DragStartedEventArgs.cs