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
- EventLogPermission.cs
- WebPartsPersonalizationAuthorization.cs
- RtfToXamlReader.cs
- WebPartCancelEventArgs.cs
- ByteFacetDescriptionElement.cs
- SqlConnectionFactory.cs
- DataControlFieldCollection.cs
- TableRowCollection.cs
- PersistenceException.cs
- CodeMethodReturnStatement.cs
- EndpointNotFoundException.cs
- LineGeometry.cs
- LeftCellWrapper.cs
- UIElement3D.cs
- ExecutionScope.cs
- RuntimeArgumentHandle.cs
- FloaterBaseParaClient.cs
- XMLUtil.cs
- DataControlPagerLinkButton.cs
- input.cs
- BitHelper.cs
- ValidationEventArgs.cs
- MatrixAnimationUsingPath.cs
- AssemblyName.cs
- ToolStripPanelRow.cs
- JsonFormatGeneratorStatics.cs
- ResizingMessageFilter.cs
- ControlDesigner.cs
- IgnoreFileBuildProvider.cs
- MSG.cs
- SystemInfo.cs
- PropagatorResult.cs
- ReadContentAsBinaryHelper.cs
- Thumb.cs
- PEFileReader.cs
- FlowDocumentReader.cs
- PagerSettings.cs
- WebPartDisplayMode.cs
- HandleExceptionArgs.cs
- ObjectQuery_EntitySqlExtensions.cs
- EndpointConfigContainer.cs
- DataListItemCollection.cs
- RegexTree.cs
- ApplicationInfo.cs
- IgnoreFileBuildProvider.cs
- GlyphTypeface.cs
- Int64KeyFrameCollection.cs
- MSAANativeProvider.cs
- TrackingProfileCache.cs
- ReflectionServiceProvider.cs
- WindowsEditBox.cs
- WindowsServiceElement.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- DirectoryObjectSecurity.cs
- DetailsViewPagerRow.cs
- HiddenFieldPageStatePersister.cs
- XmlUrlResolver.cs
- DocumentXmlWriter.cs
- HtmlInputControl.cs
- Int64Storage.cs
- StreamAsIStream.cs
- ProviderSettingsCollection.cs
- TableLayoutPanelCellPosition.cs
- SiteMapNodeItemEventArgs.cs
- GeneralTransform3DTo2D.cs
- BinaryObjectReader.cs
- CoTaskMemHandle.cs
- DataTablePropertyDescriptor.cs
- TdsParser.cs
- PriorityItem.cs
- HexParser.cs
- DataGridCellAutomationPeer.cs
- NumberSubstitution.cs
- ScriptReferenceBase.cs
- ScrollBar.cs
- CustomValidator.cs
- bindurihelper.cs
- LineGeometry.cs
- SrgsSubset.cs
- FastEncoderWindow.cs
- TrackingExtract.cs
- _BaseOverlappedAsyncResult.cs
- Rect3DConverter.cs
- ConvertBinder.cs
- ToolStripItem.cs
- ClientRoleProvider.cs
- AudioFormatConverter.cs
- ObjectToIdCache.cs
- TypeContext.cs
- TemplateBuilder.cs
- login.cs
- UnsafeNativeMethods.cs
- DoWorkEventArgs.cs
- SurrogateEncoder.cs
- ItemCollection.cs
- ZipIOCentralDirectoryFileHeader.cs
- PrintPreviewControl.cs
- MetaChildrenColumn.cs
- QuaternionAnimation.cs
- RightsManagementInformation.cs