Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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. // Copyright (c) Microsoft Corporation. All rights reserved./// 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
- GroupQuery.cs
- ConfigurationLocationCollection.cs
- ToolboxComponentsCreatingEventArgs.cs
- NavigationService.cs
- DrawingAttributeSerializer.cs
- MasterPageParser.cs
- Point3DAnimation.cs
- UrlMappingCollection.cs
- ToolStripItemEventArgs.cs
- SchemaObjectWriter.cs
- RtfFormatStack.cs
- StatusStrip.cs
- ComboBox.cs
- BooleanAnimationUsingKeyFrames.cs
- MatrixTransform.cs
- ClientRoleProvider.cs
- SecureStringHasher.cs
- AmbientProperties.cs
- ObjectNotFoundException.cs
- SecurityTokenSerializer.cs
- Section.cs
- KeyGestureValueSerializer.cs
- DatagridviewDisplayedBandsData.cs
- SettingsPropertyNotFoundException.cs
- DuplicateWaitObjectException.cs
- messageonlyhwndwrapper.cs
- EndEvent.cs
- MultiPropertyDescriptorGridEntry.cs
- StringAnimationUsingKeyFrames.cs
- HScrollProperties.cs
- PointLightBase.cs
- TcpClientCredentialType.cs
- TableStyle.cs
- InkSerializer.cs
- ImportCatalogPart.cs
- TextSelectionHelper.cs
- EntityProxyTypeInfo.cs
- FeatureAttribute.cs
- FontInfo.cs
- SystemBrushes.cs
- ComplexTypeEmitter.cs
- XmlQualifiedNameTest.cs
- ConfigurationErrorsException.cs
- Tuple.cs
- StylusButton.cs
- ThicknessAnimation.cs
- HostingEnvironmentException.cs
- FontDialog.cs
- SelectionEditingBehavior.cs
- DataServiceHostFactory.cs
- QilSortKey.cs
- HitTestDrawingContextWalker.cs
- PermissionSetTriple.cs
- MSAANativeProvider.cs
- SchemaSetCompiler.cs
- TreeNodeSelectionProcessor.cs
- CqlWriter.cs
- FunctionImportElement.cs
- UrlPropertyAttribute.cs
- Decimal.cs
- JoinGraph.cs
- webeventbuffer.cs
- Schema.cs
- MatrixConverter.cs
- ProcessHostMapPath.cs
- PointValueSerializer.cs
- ValueQuery.cs
- SqlDataSourceCache.cs
- SupportsEventValidationAttribute.cs
- TableDetailsCollection.cs
- Opcode.cs
- CodeAccessSecurityEngine.cs
- WebControlsSection.cs
- QueueTransferProtocol.cs
- PlaceHolder.cs
- ColorTransformHelper.cs
- XmlByteStreamWriter.cs
- StyleCollectionEditor.cs
- ScriptMethodAttribute.cs
- FrameworkRichTextComposition.cs
- Decoder.cs
- WithParamAction.cs
- Thread.cs
- HttpListenerPrefixCollection.cs
- ModelTreeEnumerator.cs
- control.ime.cs
- DataGridSortCommandEventArgs.cs
- ClientApiGenerator.cs
- TwoPhaseCommitProxy.cs
- Int16Storage.cs
- DataTableTypeConverter.cs
- DataRowIndexBuffer.cs
- SerializationSectionGroup.cs
- SqlUtils.cs
- ViewStateModeByIdAttribute.cs
- TransactedBatchingElement.cs
- FirewallWrapper.cs
- UnicastIPAddressInformationCollection.cs
- ListBase.cs
- UserControl.cs