Code:
/ FX-1434 / FX-1434 / 1.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
- WindowsAuthenticationModule.cs
- MimeTextImporter.cs
- ToolStripDesigner.cs
- _CookieModule.cs
- OleDbRowUpdatingEvent.cs
- Pen.cs
- ContextDataSourceContextData.cs
- CssClassPropertyAttribute.cs
- RestClientProxyHandler.cs
- QilDataSource.cs
- CodeBinaryOperatorExpression.cs
- BitmapScalingModeValidation.cs
- RootAction.cs
- DataGridViewColumnConverter.cs
- XXXInfos.cs
- InputDevice.cs
- PropertyManager.cs
- InfoCardProofToken.cs
- ProcessHostMapPath.cs
- TextServicesCompartmentEventSink.cs
- _SpnDictionary.cs
- VarInfo.cs
- DataGridViewHeaderCell.cs
- BitmapScalingModeValidation.cs
- WebEncodingValidatorAttribute.cs
- ProfileBuildProvider.cs
- WmlMobileTextWriter.cs
- ScrollData.cs
- WebControlToolBoxItem.cs
- DomainConstraint.cs
- RadialGradientBrush.cs
- TemplateControlCodeDomTreeGenerator.cs
- XMLSyntaxException.cs
- ActivityBuilderHelper.cs
- MetadataWorkspace.cs
- StringPropertyBuilder.cs
- ExecutedRoutedEventArgs.cs
- SignatureDescription.cs
- Membership.cs
- CommandPlan.cs
- DeclarativeCatalogPart.cs
- Bookmark.cs
- UserPreferenceChangedEventArgs.cs
- MulticastDelegate.cs
- SplineKeyFrames.cs
- ServiceAuthorizationManager.cs
- GZipUtils.cs
- TextStore.cs
- ScrollProperties.cs
- DataGridColumnReorderingEventArgs.cs
- CatalogPartCollection.cs
- DateTimeValueSerializerContext.cs
- FieldAccessException.cs
- FixedPage.cs
- CellConstant.cs
- InteropExecutor.cs
- ButtonColumn.cs
- CommandValueSerializer.cs
- _NegoStream.cs
- OwnerDrawPropertyBag.cs
- DesignerDataRelationship.cs
- SqlCommandBuilder.cs
- SharingService.cs
- Sequence.cs
- IgnoreFileBuildProvider.cs
- DefaultValueTypeConverter.cs
- Vector3DAnimationBase.cs
- ImageInfo.cs
- DeriveBytes.cs
- _LoggingObject.cs
- TimeoutException.cs
- WindowsFormsHost.cs
- PeerService.cs
- HtmlControl.cs
- ChannelManager.cs
- EntityClassGenerator.cs
- ResourceSet.cs
- ISFClipboardData.cs
- SerializerProvider.cs
- formatter.cs
- DataSourceCacheDurationConverter.cs
- BuildProviderAppliesToAttribute.cs
- JulianCalendar.cs
- Statements.cs
- ApplicationId.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- ping.cs
- SerializableReadOnlyDictionary.cs
- sqlcontext.cs
- HttpHandlerActionCollection.cs
- DoubleLink.cs
- InheritanceContextHelper.cs
- ChameleonKey.cs
- MemberInfoSerializationHolder.cs
- InputReferenceExpression.cs
- StoragePropertyMapping.cs
- ShaderEffect.cs
- RangeValuePattern.cs
- OleAutBinder.cs
- HtmlCommandAdapter.cs