Code:
/ 4.0 / 4.0 / 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. /// // 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
- Point3DCollection.cs
- DataGridViewColumn.cs
- PeerResolverElement.cs
- ResourceWriter.cs
- WebPartChrome.cs
- RepeatBehaviorConverter.cs
- IteratorDescriptor.cs
- CustomAssemblyResolver.cs
- NotConverter.cs
- ListCollectionView.cs
- MemberHolder.cs
- GPPOINTF.cs
- ZipIOModeEnforcingStream.cs
- HttpListener.cs
- XPathQilFactory.cs
- PropertyPath.cs
- VisualTreeUtils.cs
- LinqDataSourceContextData.cs
- HtmlTableCellCollection.cs
- contentDescriptor.cs
- XPathMessageFilterElement.cs
- XPathDescendantIterator.cs
- MultiSelectRootGridEntry.cs
- HexParser.cs
- HtmlFormAdapter.cs
- ButtonChrome.cs
- DrawListViewColumnHeaderEventArgs.cs
- ManagedWndProcTracker.cs
- GeneralTransform2DTo3D.cs
- Literal.cs
- ExpressionDumper.cs
- LambdaCompiler.Expressions.cs
- HttpListenerPrefixCollection.cs
- PrinterUnitConvert.cs
- EventInfo.cs
- DataRelationCollection.cs
- wmiprovider.cs
- Thread.cs
- DynamicValidatorEventArgs.cs
- WindowPattern.cs
- WebDescriptionAttribute.cs
- ProxyWebPartManager.cs
- Column.cs
- ToolboxComponentsCreatedEventArgs.cs
- ToolTipService.cs
- _ListenerAsyncResult.cs
- Funcletizer.cs
- StatementContext.cs
- UnsignedPublishLicense.cs
- HyperLinkStyle.cs
- SafeRegistryHandle.cs
- SystemIcmpV4Statistics.cs
- AttributeCollection.cs
- Exceptions.cs
- ToolStrip.cs
- PlatformNotSupportedException.cs
- _NativeSSPI.cs
- DropDownButton.cs
- GlobalEventManager.cs
- TextRunCacheImp.cs
- InlineUIContainer.cs
- SafeNativeMethods.cs
- HebrewCalendar.cs
- PrintPreviewControl.cs
- OutOfProcStateClientManager.cs
- DependencyPropertyChangedEventArgs.cs
- Transform.cs
- Underline.cs
- RandomNumberGenerator.cs
- InternalControlCollection.cs
- ThicknessKeyFrameCollection.cs
- EmulateRecognizeCompletedEventArgs.cs
- C14NUtil.cs
- DictionaryBase.cs
- ItemContainerProviderWrapper.cs
- QueryContinueDragEventArgs.cs
- DataGridTableStyleMappingNameEditor.cs
- DbConvert.cs
- CaseInsensitiveOrdinalStringComparer.cs
- ChangeDirector.cs
- WebPartPersonalization.cs
- CompositeTypefaceMetrics.cs
- XPathNavigatorKeyComparer.cs
- ChannelCacheDefaults.cs
- Int64KeyFrameCollection.cs
- ManagedWndProcTracker.cs
- DetailsViewRow.cs
- ClassicBorderDecorator.cs
- SqlProviderServices.cs
- HtmlTableCell.cs
- XslTransform.cs
- StringReader.cs
- HtmlEmptyTagControlBuilder.cs
- PerformanceCounterPermissionEntry.cs
- ProxySimple.cs
- UpdateManifestForBrowserApplication.cs
- ObjectDataSourceView.cs
- AsymmetricKeyExchangeFormatter.cs
- IndexedString.cs
- FlowNode.cs