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
- complextypematerializer.cs
- FixedSOMLineCollection.cs
- SignatureHelper.cs
- Vector3DAnimationUsingKeyFrames.cs
- SymbolMethod.cs
- XmlDictionaryWriter.cs
- BinaryReader.cs
- WebFaultClientMessageInspector.cs
- CopyOfAction.cs
- SchemaImporter.cs
- XamlStream.cs
- MimeAnyImporter.cs
- _BufferOffsetSize.cs
- PropertyConverter.cs
- _HeaderInfoTable.cs
- XmlSchemaComplexContent.cs
- SettingsPropertyValueCollection.cs
- SimpleFieldTemplateUserControl.cs
- ApplicationId.cs
- TypeForwardedToAttribute.cs
- BindingExpression.cs
- CapabilitiesUse.cs
- DefinitionUpdate.cs
- WebBrowserNavigatedEventHandler.cs
- SqlConnectionHelper.cs
- ClientTargetCollection.cs
- TdsParserSessionPool.cs
- DataSysAttribute.cs
- SerializationInfoEnumerator.cs
- GenerateTemporaryTargetAssembly.cs
- TransactionFilter.cs
- SerializationInfoEnumerator.cs
- EdmToObjectNamespaceMap.cs
- BitmapEffectState.cs
- DbDataAdapter.cs
- InvalidPropValue.cs
- ObjectCloneHelper.cs
- CuspData.cs
- TextTreeRootNode.cs
- TypeToken.cs
- FontStretchConverter.cs
- UInt64Storage.cs
- DynamicVirtualDiscoSearcher.cs
- MeasureItemEvent.cs
- MenuItemBindingCollection.cs
- ImpersonateTokenRef.cs
- TableItemProviderWrapper.cs
- XmlSerializerNamespaces.cs
- MemberPathMap.cs
- Line.cs
- MDIControlStrip.cs
- Vector3DAnimationBase.cs
- TypeDescriptionProviderAttribute.cs
- DateTimeStorage.cs
- TemplateInstanceAttribute.cs
- Stack.cs
- SqlDataSourceConfigureSelectPanel.cs
- StyleSheet.cs
- EntityUtil.cs
- SmiEventSink.cs
- DataExpression.cs
- PixelFormatConverter.cs
- WeakHashtable.cs
- Dynamic.cs
- ValidatorCollection.cs
- SimpleWebHandlerParser.cs
- GridViewDeleteEventArgs.cs
- TableSectionStyle.cs
- RewritingValidator.cs
- AsymmetricSecurityBindingElement.cs
- NameValueCollection.cs
- ThreadAbortException.cs
- Encoder.cs
- DocumentApplicationJournalEntryEventArgs.cs
- SQLBinary.cs
- FindCriteriaElement.cs
- SecuritySessionClientSettings.cs
- XhtmlBasicCommandAdapter.cs
- ParameterExpression.cs
- AppSettingsSection.cs
- ExpressionBindings.cs
- MatrixKeyFrameCollection.cs
- FontInfo.cs
- coordinator.cs
- HtmlInputPassword.cs
- BinaryFormatter.cs
- UndoManager.cs
- PrintEvent.cs
- TransformerTypeCollection.cs
- AsymmetricCryptoHandle.cs
- StyleSelector.cs
- XmlSchema.cs
- XmlSchemaInfo.cs
- ListViewCommandEventArgs.cs
- BufferBuilder.cs
- StructuredCompositeActivityDesigner.cs
- GridViewUpdatedEventArgs.cs
- DesignerToolboxInfo.cs
- XmlSerializationReader.cs
- CodeAttributeArgument.cs