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
- QueryCursorEventArgs.cs
- ConfigurationElement.cs
- SubpageParagraph.cs
- SelectionRange.cs
- Int32Storage.cs
- Pkcs9Attribute.cs
- CriticalHandle.cs
- PropertyPushdownHelper.cs
- StringUtil.cs
- NameNode.cs
- DataGridTableCollection.cs
- IdentityNotMappedException.cs
- DrawingImage.cs
- UrlAuthFailedErrorFormatter.cs
- JournalEntryStack.cs
- TypeElementCollection.cs
- HttpRuntimeSection.cs
- MsmqInputSessionChannelListener.cs
- BaseCollection.cs
- OutputCacheSection.cs
- ParsedAttributeCollection.cs
- EpmSyndicationContentDeSerializer.cs
- BuilderInfo.cs
- SqlNodeTypeOperators.cs
- SqlGatherProducedAliases.cs
- DataBoundControl.cs
- Command.cs
- Point3DValueSerializer.cs
- NativeStructs.cs
- MouseOverProperty.cs
- FlowLayoutSettings.cs
- EventEntry.cs
- LogSwitch.cs
- HtmlInputHidden.cs
- DataObject.cs
- externdll.cs
- HttpServerVarsCollection.cs
- PageCodeDomTreeGenerator.cs
- OutputCacheEntry.cs
- EncoderBestFitFallback.cs
- AuthenticationService.cs
- ToolTip.cs
- Section.cs
- WebPartDisplayMode.cs
- ListCollectionView.cs
- OwnerDrawPropertyBag.cs
- Types.cs
- ArraySortHelper.cs
- WmlListAdapter.cs
- EntityContainerAssociationSetEnd.cs
- IEnumerable.cs
- PtsContext.cs
- DrawingContextWalker.cs
- WindowsToolbarItemAsMenuItem.cs
- XamlWriter.cs
- ContractListAdapter.cs
- XmlEncoding.cs
- TokenizerHelper.cs
- WebHeaderCollection.cs
- WindowsGraphics2.cs
- MatrixAnimationUsingKeyFrames.cs
- TreeViewItemAutomationPeer.cs
- AppModelKnownContentFactory.cs
- MediaElementAutomationPeer.cs
- ByteViewer.cs
- DesignerDeviceConfig.cs
- IISUnsafeMethods.cs
- PageSetupDialog.cs
- PeerNeighborManager.cs
- BufferAllocator.cs
- BrowserCapabilitiesFactoryBase.cs
- SimpleType.cs
- Stream.cs
- Triplet.cs
- NonBatchDirectoryCompiler.cs
- ILGenerator.cs
- EmptyControlCollection.cs
- BitStream.cs
- AnnotationHighlightLayer.cs
- FtpRequestCacheValidator.cs
- GreenMethods.cs
- LinearGradientBrush.cs
- Binding.cs
- FontSource.cs
- TextElementCollection.cs
- VolatileEnlistmentMultiplexing.cs
- ThicknessAnimationUsingKeyFrames.cs
- UriTemplateEquivalenceComparer.cs
- RangeBase.cs
- InnerItemCollectionView.cs
- SelectionWordBreaker.cs
- CodeAttributeDeclaration.cs
- Signature.cs
- BufferModeSettings.cs
- PointUtil.cs
- ContextBase.cs
- WebRequestModuleElement.cs
- SurrogateSelector.cs
- TextTreeTextElementNode.cs
- InputScopeConverter.cs