Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- SmtpFailedRecipientException.cs
- EnvelopedSignatureTransform.cs
- BooleanAnimationUsingKeyFrames.cs
- Gdiplus.cs
- EnumerableRowCollection.cs
- InfiniteTimeSpanConverter.cs
- SynchronizationHandlesCodeDomSerializer.cs
- wmiprovider.cs
- Quaternion.cs
- GcHandle.cs
- RequestDescription.cs
- ObjectContextServiceProvider.cs
- TailCallAnalyzer.cs
- Positioning.cs
- SqlConnectionPoolGroupProviderInfo.cs
- WriteTimeStream.cs
- _SpnDictionary.cs
- ExpressionParser.cs
- ZoneMembershipCondition.cs
- TimeManager.cs
- CheckedPointers.cs
- TextCollapsingProperties.cs
- _NegoState.cs
- TextElementEnumerator.cs
- NavigationHelper.cs
- StateRuntime.cs
- BitmapCodecInfo.cs
- ConnectionProviderAttribute.cs
- PathTooLongException.cs
- QilGenerator.cs
- AssociationTypeEmitter.cs
- FrameworkContextData.cs
- XmlComment.cs
- WebPartTracker.cs
- PropertiesTab.cs
- LowerCaseStringConverter.cs
- MediaElementAutomationPeer.cs
- storepermission.cs
- EventSetterHandlerConverter.cs
- Utils.cs
- PrintPageEvent.cs
- ImageMetadata.cs
- IndexedWhereQueryOperator.cs
- odbcmetadatacollectionnames.cs
- NameHandler.cs
- FixedNode.cs
- MutableAssemblyCacheEntry.cs
- StreamHelper.cs
- ScriptServiceAttribute.cs
- CachedRequestParams.cs
- SqlInternalConnectionSmi.cs
- SQLConvert.cs
- ServiceDescriptionSerializer.cs
- ProfileBuildProvider.cs
- RadioButtonStandardAdapter.cs
- ItemCollection.cs
- AccessDataSource.cs
- DispatcherObject.cs
- DependencyPropertyValueSerializer.cs
- FormViewDesigner.cs
- DataGridViewCellValueEventArgs.cs
- BinaryParser.cs
- Label.cs
- PieceNameHelper.cs
- StreamMarshaler.cs
- _TransmitFileOverlappedAsyncResult.cs
- ProviderMetadata.cs
- diagnosticsswitches.cs
- LinearQuaternionKeyFrame.cs
- DynamicMetaObject.cs
- SessionStateModule.cs
- PropertyChangedEventManager.cs
- OdbcDataReader.cs
- DockPatternIdentifiers.cs
- TableLayoutPanel.cs
- NumberSubstitution.cs
- BaseCodePageEncoding.cs
- MessageSecurityTokenVersion.cs
- LambdaCompiler.Unary.cs
- HierarchicalDataSourceControl.cs
- HttpRequestCacheValidator.cs
- WmlValidatorAdapter.cs
- ClientData.cs
- SystemInformation.cs
- XsltContext.cs
- PinnedBufferMemoryStream.cs
- ListDictionaryInternal.cs
- AppModelKnownContentFactory.cs
- BackgroundFormatInfo.cs
- StructuredProperty.cs
- ByteStorage.cs
- BulletChrome.cs
- TreeNodeConverter.cs
- OciLobLocator.cs
- ZipPackage.cs
- Size3D.cs
- NoneExcludedImageIndexConverter.cs
- StatusBar.cs
- IgnorePropertiesAttribute.cs
- ContextBase.cs