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
- UpdateException.cs
- ToolStripDropDownMenu.cs
- SessionPageStateSection.cs
- BitmapSourceSafeMILHandle.cs
- List.cs
- WebBaseEventKeyComparer.cs
- FormattedText.cs
- WebMethodAttribute.cs
- DecimalAnimation.cs
- httpapplicationstate.cs
- SqlPersonalizationProvider.cs
- DoubleLinkListEnumerator.cs
- CqlWriter.cs
- BuildManager.cs
- EncoderBestFitFallback.cs
- ExpressionConverter.cs
- TaskFileService.cs
- CombinedTcpChannel.cs
- GuidConverter.cs
- JobDuplex.cs
- CustomAssemblyResolver.cs
- RegexCompilationInfo.cs
- VersionedStream.cs
- PersonalizablePropertyEntry.cs
- Pen.cs
- EdgeProfileValidation.cs
- StatusBarAutomationPeer.cs
- Point.cs
- LocationEnvironment.cs
- EntityClassGenerator.cs
- KeyedQueue.cs
- Compilation.cs
- tibetanshape.cs
- WindowsRichEditRange.cs
- XmlSigningNodeWriter.cs
- ScriptResourceInfo.cs
- LinqDataSourceDeleteEventArgs.cs
- OrCondition.cs
- AutoGeneratedField.cs
- UnionQueryOperator.cs
- _Events.cs
- TemplateField.cs
- DataServiceClientException.cs
- METAHEADER.cs
- StateItem.cs
- DataGridViewRowConverter.cs
- Separator.cs
- ExclusiveCanonicalizationTransform.cs
- PolicyStatement.cs
- ClientEventManager.cs
- HeaderCollection.cs
- FieldBuilder.cs
- ExpandSegment.cs
- Token.cs
- FeatureAttribute.cs
- KoreanCalendar.cs
- ExpressionLexer.cs
- SmtpException.cs
- RegexNode.cs
- EncryptedData.cs
- XmlUtilWriter.cs
- SqlDataReader.cs
- DynamicUpdateCommand.cs
- NetNamedPipeBindingElement.cs
- TimelineGroup.cs
- XmlQueryOutput.cs
- StatusBarPanelClickEvent.cs
- AttributeProviderAttribute.cs
- XmlElementAttributes.cs
- StyleXamlTreeBuilder.cs
- InternalCache.cs
- ConfigXmlElement.cs
- DataSourceXmlSubItemAttribute.cs
- RoleService.cs
- KoreanCalendar.cs
- ManipulationDeltaEventArgs.cs
- WebBrowserBase.cs
- Clipboard.cs
- DataSource.cs
- Descriptor.cs
- xsdvalidator.cs
- FigureParagraph.cs
- ClassValidator.cs
- StylusShape.cs
- FrameworkRichTextComposition.cs
- DesignerDataSourceView.cs
- ExternalFile.cs
- MessageEncoder.cs
- MasterPageBuildProvider.cs
- AttributeCollection.cs
- Token.cs
- UnaryNode.cs
- StyleCollection.cs
- WebConfigurationHost.cs
- DEREncoding.cs
- Visitors.cs
- SpinLock.cs
- DistinctQueryOperator.cs
- EncodingStreamWrapper.cs
- XmlDictionaryReader.cs