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
- InvokeGenerator.cs
- SmiXetterAccessMap.cs
- HtmlTableRowCollection.cs
- FrameworkTemplate.cs
- HttpModuleActionCollection.cs
- DataGridItem.cs
- Point3DCollection.cs
- WindowsSpinner.cs
- TextServicesContext.cs
- SspiSecurityToken.cs
- DataGridViewCellStateChangedEventArgs.cs
- EventLogTraceListener.cs
- DataBoundLiteralControl.cs
- EventLogEntry.cs
- SqlDataRecord.cs
- RegistryExceptionHelper.cs
- WebBrowserContainer.cs
- StreamGeometry.cs
- SystemIcmpV6Statistics.cs
- StateManagedCollection.cs
- Boolean.cs
- BatchServiceHost.cs
- ToolStripDropDown.cs
- MarkupCompilePass1.cs
- Registration.cs
- ConstraintManager.cs
- PropertyMapper.cs
- Geometry.cs
- SerializerProvider.cs
- SqlMetaData.cs
- CallbackHandler.cs
- FontCacheUtil.cs
- UserNamePasswordValidator.cs
- ReliabilityContractAttribute.cs
- CrossSiteScriptingValidation.cs
- ConfigurationProviderException.cs
- ContentElement.cs
- InstanceKeyCompleteException.cs
- MatrixTransform3D.cs
- UnsignedPublishLicense.cs
- StoreContentChangedEventArgs.cs
- CustomErrorsSection.cs
- Accessible.cs
- RenderOptions.cs
- ServiceModelDictionary.cs
- COM2ExtendedTypeConverter.cs
- AsyncPostBackErrorEventArgs.cs
- GeneralTransform.cs
- TextChangedEventArgs.cs
- EdmProperty.cs
- TableLayoutSettingsTypeConverter.cs
- NetworkCredential.cs
- EventLogPermission.cs
- XmlSchemaSimpleTypeList.cs
- TriggerActionCollection.cs
- KnownAssembliesSet.cs
- DataGridViewCheckBoxColumn.cs
- DataContext.cs
- LinqDataSource.cs
- ValidatorCollection.cs
- DoubleLinkList.cs
- OneOfTypeConst.cs
- SafeReversePInvokeHandle.cs
- FirstMatchCodeGroup.cs
- PersistChildrenAttribute.cs
- DBSchemaRow.cs
- ReachSerializer.cs
- QueryCreatedEventArgs.cs
- NumberSubstitution.cs
- ActivityPreviewDesigner.cs
- SchemaNotation.cs
- EntityContainerRelationshipSet.cs
- XmlDataCollection.cs
- TabControl.cs
- HostingEnvironmentException.cs
- DataTableReader.cs
- SQlBooleanStorage.cs
- QueryOutputWriter.cs
- CacheAxisQuery.cs
- Point3DCollection.cs
- PackagePartCollection.cs
- TextParagraphProperties.cs
- XhtmlBasicLabelAdapter.cs
- TextViewDesigner.cs
- SocketPermission.cs
- TextureBrush.cs
- WorkflowValidationFailedException.cs
- FixedElement.cs
- LineServices.cs
- QilSortKey.cs
- XmlName.cs
- MapPathBasedVirtualPathProvider.cs
- ProfileGroupSettings.cs
- HttpRuntimeSection.cs
- FigureParagraph.cs
- LinkUtilities.cs
- BaseWebProxyFinder.cs
- RequestQueue.cs
- ConfigurationManagerInternalFactory.cs
- PaperSource.cs