Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / WinForms / Managed / System / WinForms / KeyPressEvent.cs / 1 / 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
- StoreItemCollection.Loader.cs
- HttpProxyCredentialType.cs
- PkcsMisc.cs
- ActiveXSite.cs
- Decorator.cs
- MachineKeyConverter.cs
- QilUnary.cs
- DataViewManagerListItemTypeDescriptor.cs
- BorderGapMaskConverter.cs
- VirtualDirectoryMappingCollection.cs
- CompilerError.cs
- DirectoryInfo.cs
- AdCreatedEventArgs.cs
- RowsCopiedEventArgs.cs
- versioninfo.cs
- FilePrompt.cs
- RoleService.cs
- InfoCardHelper.cs
- PageTheme.cs
- QilNode.cs
- ObjectNotFoundException.cs
- SqlPersonalizationProvider.cs
- HwndHostAutomationPeer.cs
- HostVisual.cs
- altserialization.cs
- IList.cs
- DecimalConstantAttribute.cs
- MarkedHighlightComponent.cs
- Transform3D.cs
- SystemResources.cs
- _LazyAsyncResult.cs
- WmlPageAdapter.cs
- MimeTextImporter.cs
- SimpleHandlerFactory.cs
- PerformanceCounterPermission.cs
- DeploymentSectionCache.cs
- ToolBarOverflowPanel.cs
- SafeRightsManagementHandle.cs
- SqlDataAdapter.cs
- OutputCacheProfile.cs
- ExpressionEvaluator.cs
- DateTimeOffset.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- Schema.cs
- ViewStateException.cs
- PaginationProgressEventArgs.cs
- BindingCollection.cs
- InstanceDescriptor.cs
- EnvironmentPermission.cs
- MergeEnumerator.cs
- FocusManager.cs
- SimpleHandlerFactory.cs
- LeaseManager.cs
- DefaultMemberAttribute.cs
- Itemizer.cs
- EntityClientCacheKey.cs
- PointAnimationClockResource.cs
- NotConverter.cs
- webclient.cs
- ListView.cs
- InputLangChangeEvent.cs
- StrongNameMembershipCondition.cs
- XsdBuilder.cs
- OAVariantLib.cs
- X509ClientCertificateAuthenticationElement.cs
- ProviderManager.cs
- EntityDesignerDataSourceView.cs
- WebScriptMetadataMessageEncodingBindingElement.cs
- OpCodes.cs
- BuildProvider.cs
- HashJoinQueryOperatorEnumerator.cs
- FlowDocument.cs
- TextReader.cs
- AssemblyAttributes.cs
- StringSorter.cs
- TypeInitializationException.cs
- ScrollItemPatternIdentifiers.cs
- SolidColorBrush.cs
- xmlfixedPageInfo.cs
- ExpandCollapseProviderWrapper.cs
- HasCopySemanticsAttribute.cs
- CompositeFontInfo.cs
- IriParsingElement.cs
- XNameConverter.cs
- CustomAttributeBuilder.cs
- SQLInt64.cs
- SequenceDesigner.cs
- MessageBox.cs
- AudioStateChangedEventArgs.cs
- RequestQueue.cs
- PtsPage.cs
- AssociationTypeEmitter.cs
- DirtyTextRange.cs
- DataGridItem.cs
- AdornerHitTestResult.cs
- ACE.cs
- URLEditor.cs
- PersistenceTypeAttribute.cs
- XmlEntityReference.cs
- CodeBlockBuilder.cs