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
- XmlSchemaCompilationSettings.cs
- CodeGeneratorOptions.cs
- DbXmlEnabledProviderManifest.cs
- Msec.cs
- SafeThemeHandle.cs
- CacheForPrimitiveTypes.cs
- DrawingVisual.cs
- SpellerStatusTable.cs
- PaperSize.cs
- RoutedEventConverter.cs
- QuinticEase.cs
- Assembly.cs
- ValidationManager.cs
- CaseExpr.cs
- MailAddressCollection.cs
- TextSelection.cs
- ResXBuildProvider.cs
- Error.cs
- HostedTransportConfigurationBase.cs
- ConsoleCancelEventArgs.cs
- MembershipValidatePasswordEventArgs.cs
- ValueQuery.cs
- mansign.cs
- Vector3D.cs
- HwndAppCommandInputProvider.cs
- Padding.cs
- PresentationSource.cs
- Boolean.cs
- TextBounds.cs
- PickDesigner.xaml.cs
- ScalarConstant.cs
- TraceHwndHost.cs
- CFStream.cs
- ServiceReference.cs
- FormViewPagerRow.cs
- FlowDocumentPage.cs
- ObjectStateManager.cs
- ClassicBorderDecorator.cs
- MultipartIdentifier.cs
- RTLAwareMessageBox.cs
- DefaultValueTypeConverter.cs
- TemplateAction.cs
- shaperfactoryquerycachekey.cs
- ItemsPresenter.cs
- InternalConfigSettingsFactory.cs
- CompensateDesigner.cs
- Calendar.cs
- QilGeneratorEnv.cs
- ClientTarget.cs
- PublisherMembershipCondition.cs
- EntityDesignerBuildProvider.cs
- WebPartConnectionsCancelEventArgs.cs
- Journaling.cs
- HotSpot.cs
- ImmutablePropertyDescriptorGridEntry.cs
- OutputWindow.cs
- TransformerInfo.cs
- OperatorExpressions.cs
- ManagementObjectCollection.cs
- PriorityChain.cs
- UseAttributeSetsAction.cs
- DbMetaDataFactory.cs
- XmlPreloadedResolver.cs
- FrameworkTemplate.cs
- XamlValidatingReader.cs
- CursorConverter.cs
- SqlClientPermission.cs
- PersonalizationDictionary.cs
- EntityModelBuildProvider.cs
- XPathChildIterator.cs
- DataSourceHelper.cs
- LinearGradientBrush.cs
- OleDbEnumerator.cs
- BookmarkList.cs
- ToolStripRenderEventArgs.cs
- RotationValidation.cs
- bidPrivateBase.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- MetaType.cs
- Soap.cs
- PeerObject.cs
- ButtonChrome.cs
- TextMarkerSource.cs
- SocketElement.cs
- HttpProtocolReflector.cs
- AttributeProviderAttribute.cs
- Switch.cs
- DataGridViewToolTip.cs
- SiteMembershipCondition.cs
- FilterableAttribute.cs
- CanonicalXml.cs
- DockPanel.cs
- SystemFonts.cs
- StoreItemCollection.cs
- HighlightVisual.cs
- EntityTemplateFactory.cs
- TextLine.cs
- SettingsBase.cs
- SqlClientMetaDataCollectionNames.cs
- DesignerDataConnection.cs