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
- IndexedSelectQueryOperator.cs
- WorkflowMarkupSerializationManager.cs
- WebService.cs
- DataListItemEventArgs.cs
- SizeConverter.cs
- Timer.cs
- _CommandStream.cs
- StandardRuntimeEnumValidatorAttribute.cs
- SystemSounds.cs
- NamespaceEmitter.cs
- CustomWebEventKey.cs
- util.cs
- XmlReflectionImporter.cs
- FontCacheLogic.cs
- Debugger.cs
- ModuleBuilderData.cs
- VScrollProperties.cs
- SqlServer2KCompatibilityCheck.cs
- DelegateTypeInfo.cs
- ObjectConverter.cs
- CompilationPass2Task.cs
- FixedSOMPageConstructor.cs
- StateMachineHelpers.cs
- SimpleWebHandlerParser.cs
- ConfigurationSectionGroup.cs
- InstanceKeyCompleteException.cs
- InputLanguageManager.cs
- CatalogPart.cs
- SqlVisitor.cs
- XmlSchemaNotation.cs
- AsnEncodedData.cs
- HyperLinkStyle.cs
- printdlgexmarshaler.cs
- DataSourceSerializationException.cs
- ConnectionsZone.cs
- PropertyItem.cs
- DPCustomTypeDescriptor.cs
- EpmSourceTree.cs
- EventlogProvider.cs
- DllNotFoundException.cs
- ValidationHelpers.cs
- RowVisual.cs
- SplineKeyFrames.cs
- SignalGate.cs
- BeginEvent.cs
- connectionpool.cs
- SystemColorTracker.cs
- StateWorkerRequest.cs
- TextFragmentEngine.cs
- ValueType.cs
- DesignObjectWrapper.cs
- UIElementCollection.cs
- CustomSignedXml.cs
- Latin1Encoding.cs
- Themes.cs
- ClientData.cs
- X509SecurityTokenProvider.cs
- EllipticalNodeOperations.cs
- FormViewRow.cs
- TabRenderer.cs
- TypefaceMap.cs
- StopStoryboard.cs
- SchemaDeclBase.cs
- DocumentSchemaValidator.cs
- DeferredSelectedIndexReference.cs
- RichTextBoxConstants.cs
- DataSourceListEditor.cs
- TextHintingModeValidation.cs
- SafeViewOfFileHandle.cs
- Listbox.cs
- FontFamilyIdentifier.cs
- ProviderUtil.cs
- Pts.cs
- FixedSOMGroup.cs
- XMLDiffLoader.cs
- TransactionException.cs
- GraphicsPath.cs
- ObjectReferenceStack.cs
- NetCodeGroup.cs
- SessionStateModule.cs
- SafeRightsManagementQueryHandle.cs
- SafeSecurityHandles.cs
- SqlConnectionPoolProviderInfo.cs
- XPathParser.cs
- CodeGen.cs
- State.cs
- ThicknessAnimationBase.cs
- StickyNoteAnnotations.cs
- Figure.cs
- IntSecurity.cs
- AllMembershipCondition.cs
- Oid.cs
- BezierSegment.cs
- SchemaAttDef.cs
- propertyentry.cs
- BitSet.cs
- HyperLinkDesigner.cs
- MissingMethodException.cs
- OutputWindow.cs
- DependencyPropertyHelper.cs