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
- PagePropertiesChangingEventArgs.cs
- InkCollectionBehavior.cs
- IncrementalHitTester.cs
- BamlBinaryReader.cs
- DataGridViewColumnDesigner.cs
- Metafile.cs
- InheritanceContextHelper.cs
- OLEDB_Util.cs
- TablePatternIdentifiers.cs
- TaskbarItemInfo.cs
- BinaryFormatterWriter.cs
- ExpressionVisitorHelpers.cs
- IndentedWriter.cs
- SqlDataSource.cs
- XmlSchemaComplexType.cs
- RequestTimeoutManager.cs
- SafeEventLogWriteHandle.cs
- OdbcParameter.cs
- DefaultParameterValueAttribute.cs
- CrossAppDomainChannel.cs
- NamedElement.cs
- RequestSecurityToken.cs
- XmlSchemaGroupRef.cs
- XmlSchemaComplexContentExtension.cs
- SpeakCompletedEventArgs.cs
- ApplicationActivator.cs
- SqlDataSourceWizardForm.cs
- SR.cs
- SqlLiftIndependentRowExpressions.cs
- Matrix3D.cs
- TextEditorSelection.cs
- MatrixConverter.cs
- WinEventQueueItem.cs
- Image.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- TypeDescriptorFilterService.cs
- DefaultAuthorizationContext.cs
- XmlElementAttributes.cs
- HttpPostProtocolImporter.cs
- TypeListConverter.cs
- UnionExpr.cs
- ShaderEffect.cs
- ObjRef.cs
- XsdDateTime.cs
- FixedStringLookup.cs
- DataFormats.cs
- Registry.cs
- ListViewAutomationPeer.cs
- WindowsIPAddress.cs
- DbParameterCollection.cs
- CodeStatement.cs
- SecurityDocument.cs
- PropertyChangeTracker.cs
- dbenumerator.cs
- AppModelKnownContentFactory.cs
- SessionIDManager.cs
- SrgsRulesCollection.cs
- TargetException.cs
- PKCS1MaskGenerationMethod.cs
- IImplicitResourceProvider.cs
- FilterQueryOptionExpression.cs
- SqlException.cs
- Query.cs
- VirtualizingStackPanel.cs
- NameValueConfigurationCollection.cs
- LinkedResource.cs
- cookie.cs
- XAMLParseException.cs
- ChannelSinkStacks.cs
- AmbientProperties.cs
- ActiveDocumentEvent.cs
- ServiceDescription.cs
- ControlEvent.cs
- TextReader.cs
- ReliabilityContractAttribute.cs
- HotSpot.cs
- CatalogZoneDesigner.cs
- SecUtil.cs
- WebEncodingValidator.cs
- Properties.cs
- Matrix3D.cs
- SelectionPatternIdentifiers.cs
- JavaScriptObjectDeserializer.cs
- PrintController.cs
- SqlCrossApplyToCrossJoin.cs
- HandleCollector.cs
- CodeArrayCreateExpression.cs
- FormClosedEvent.cs
- DispatcherEventArgs.cs
- ClientSponsor.cs
- ListItemsCollectionEditor.cs
- QuadraticBezierSegment.cs
- CryptoKeySecurity.cs
- InfiniteIntConverter.cs
- MessageQueue.cs
- Expression.cs
- FunctionQuery.cs
- FieldTemplateFactory.cs
- MembershipAdapter.cs
- ReadOnlyCollection.cs