Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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. //------------------------------------------------------------------------------ ///// 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
- TypeTypeConverter.cs
- GetTokenRequest.cs
- PrivilegeNotHeldException.cs
- ListViewInsertionMark.cs
- COM2FontConverter.cs
- Nullable.cs
- DbFunctionCommandTree.cs
- DataSourceControlBuilder.cs
- PropertyStore.cs
- Expander.cs
- ScopelessEnumAttribute.cs
- safelinkcollection.cs
- WebPartConnectionsDisconnectVerb.cs
- PassportAuthentication.cs
- UniqueSet.cs
- Single.cs
- LocalizabilityAttribute.cs
- RootAction.cs
- PostBackOptions.cs
- HitTestFilterBehavior.cs
- FileDialog_Vista_Interop.cs
- Rect3D.cs
- EntityModelSchemaGenerator.cs
- SerializationFieldInfo.cs
- HelloMessageCD1.cs
- CodeGeneratorOptions.cs
- MessageRpc.cs
- FontFamily.cs
- Compiler.cs
- NetworkInformationException.cs
- UnsafeNativeMethods.cs
- SHA1Managed.cs
- WebPartAddingEventArgs.cs
- ActivityExecutor.cs
- EmptyEnumerator.cs
- WeakReferenceList.cs
- AppSecurityManager.cs
- HMACSHA384.cs
- StringFormat.cs
- RequestResizeEvent.cs
- XmlSecureResolver.cs
- CultureSpecificCharacterBufferRange.cs
- DownloadProgressEventArgs.cs
- WorkflowDispatchContext.cs
- AutoGeneratedFieldProperties.cs
- webproxy.cs
- BooleanStorage.cs
- DataGridViewTextBoxCell.cs
- XPathSelfQuery.cs
- CellTreeSimplifier.cs
- PartManifestEntry.cs
- XmlSubtreeReader.cs
- LoginCancelEventArgs.cs
- TextInfo.cs
- SignatureHelper.cs
- CacheMemory.cs
- MultiSelectRootGridEntry.cs
- Viewport3DAutomationPeer.cs
- OracleParameterCollection.cs
- RightsManagementEncryptedStream.cs
- CLSCompliantAttribute.cs
- DataGridViewCellPaintingEventArgs.cs
- ObjectParameterCollection.cs
- MetadataItemEmitter.cs
- RadioButtonDesigner.cs
- indexingfiltermarshaler.cs
- PhysicalOps.cs
- OleDbCommand.cs
- ShaderRenderModeValidation.cs
- XmlRawWriterWrapper.cs
- CompressionTransform.cs
- NamespaceList.cs
- Stack.cs
- Dynamic.cs
- InfoCardTrace.cs
- RangeValidator.cs
- CmsInterop.cs
- elementinformation.cs
- SerializableAttribute.cs
- ColorConverter.cs
- MatrixCamera.cs
- UIServiceHelper.cs
- DefaultBindingPropertyAttribute.cs
- TrackingMemoryStream.cs
- Style.cs
- PopupRootAutomationPeer.cs
- LayoutEditorPart.cs
- XMLSyntaxException.cs
- HttpStreamXmlDictionaryWriter.cs
- Relationship.cs
- ProcessHostFactoryHelper.cs
- ServicePoint.cs
- XmlNullResolver.cs
- _SslState.cs
- XmlValidatingReaderImpl.cs
- SingleTagSectionHandler.cs
- AccessControlList.cs
- GeneralEndpointIdentity.cs
- BaseValidatorDesigner.cs
- odbcmetadatafactory.cs