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
- SizeValueSerializer.cs
- ConfigurationManagerHelperFactory.cs
- GroupByExpressionRewriter.cs
- ScriptResourceInfo.cs
- ConfigXmlText.cs
- HttpListenerRequest.cs
- WsrmTraceRecord.cs
- AncillaryOps.cs
- AutomationIdentifier.cs
- StateDesigner.Layouts.cs
- HttpProfileBase.cs
- InkCanvasFeedbackAdorner.cs
- Application.cs
- Setter.cs
- EncryptedPackageFilter.cs
- SslSecurityTokenParameters.cs
- PointLightBase.cs
- IntranetCredentialPolicy.cs
- DataContractSet.cs
- ResourceWriter.cs
- WebPartVerb.cs
- XmlUnspecifiedAttribute.cs
- MarshalByRefObject.cs
- MultiPageTextView.cs
- CriticalExceptions.cs
- DynamicRendererThreadManager.cs
- OleDbReferenceCollection.cs
- HttpClientCertificate.cs
- Activator.cs
- QilBinary.cs
- AspCompat.cs
- ValidationError.cs
- DataGridViewImageCell.cs
- PermissionSetTriple.cs
- XamlSerializer.cs
- ConstructorNeedsTagAttribute.cs
- TTSEvent.cs
- Matrix3D.cs
- MouseOverProperty.cs
- BlurBitmapEffect.cs
- MailDefinition.cs
- HttpApplicationStateWrapper.cs
- ThreadInterruptedException.cs
- ThreadStartException.cs
- JsonReader.cs
- SamlAuthorizationDecisionClaimResource.cs
- EntityFrameworkVersions.cs
- BaseUriWithWildcard.cs
- SchemaImporterExtension.cs
- DataBoundControl.cs
- DataControlFieldCollection.cs
- TreeView.cs
- ChangePassword.cs
- DetailsViewUpdateEventArgs.cs
- DataGridViewCellFormattingEventArgs.cs
- SQLDecimalStorage.cs
- UriPrefixTable.cs
- SystemColorTracker.cs
- TypeToken.cs
- XmlTypeMapping.cs
- FaultContractAttribute.cs
- CultureInfoConverter.cs
- XamlWriter.cs
- WindowsBrush.cs
- ApplicationId.cs
- ValueUtilsSmi.cs
- GenericQueueSurrogate.cs
- StatusBarItem.cs
- CqlParserHelpers.cs
- SmiMetaData.cs
- EntityViewContainer.cs
- DiscardableAttribute.cs
- WebBrowserHelper.cs
- RoutedUICommand.cs
- CodeGroup.cs
- TraceContextEventArgs.cs
- ProcessModelInfo.cs
- BindToObject.cs
- UnorderedHashRepartitionStream.cs
- RTLAwareMessageBox.cs
- TickBar.cs
- SourceElementsCollection.cs
- XmlSiteMapProvider.cs
- ValueTypeFixupInfo.cs
- ContextDataSourceContextData.cs
- TdsParserStaticMethods.cs
- CompoundFileStreamReference.cs
- CheckBoxFlatAdapter.cs
- TypeConstant.cs
- ComboBoxRenderer.cs
- InProcStateClientManager.cs
- EncodingTable.cs
- AuthenticationManager.cs
- DbUpdateCommandTree.cs
- MetadataArtifactLoaderResource.cs
- _SslStream.cs
- Timer.cs
- MemberProjectionIndex.cs
- JumpPath.cs
- AssemblyResourceLoader.cs