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
- DesignerCapabilities.cs
- FontSourceCollection.cs
- Knowncolors.cs
- StringDictionaryCodeDomSerializer.cs
- Win32MouseDevice.cs
- PerfProviderCollection.cs
- FormattedText.cs
- XPathPatternBuilder.cs
- XamlContextStack.cs
- Wildcard.cs
- OleDbReferenceCollection.cs
- DataFieldConverter.cs
- SqlClientPermission.cs
- ProcessManager.cs
- MetadataException.cs
- MultiTrigger.cs
- TextEditorSelection.cs
- XmlTextReaderImplHelpers.cs
- FormsAuthenticationUserCollection.cs
- DBNull.cs
- LogAppendAsyncResult.cs
- Site.cs
- CheckPair.cs
- InvalidCommandTreeException.cs
- CallbackValidatorAttribute.cs
- UrlAuthFailedErrorFormatter.cs
- BitmapEffect.cs
- PropertyEntry.cs
- StackBuilderSink.cs
- KeyValuePairs.cs
- SqlDataSourceAdvancedOptionsForm.cs
- DrawingContextWalker.cs
- XmlWriterDelegator.cs
- SqlXmlStorage.cs
- TraceAsyncResult.cs
- ParameterReplacerVisitor.cs
- SendDesigner.xaml.cs
- AutomationIdentifier.cs
- SecurityManager.cs
- WmlValidationSummaryAdapter.cs
- TreeViewImageKeyConverter.cs
- DataService.cs
- FilterElement.cs
- webclient.cs
- DrawListViewColumnHeaderEventArgs.cs
- HttpCapabilitiesEvaluator.cs
- ObjectManager.cs
- StreamInfo.cs
- Int64AnimationUsingKeyFrames.cs
- PriorityRange.cs
- CodeArgumentReferenceExpression.cs
- UseAttributeSetsAction.cs
- ReadOnlyCollectionBase.cs
- IPAddress.cs
- Underline.cs
- HttpCookieCollection.cs
- Point3DCollectionConverter.cs
- BlurBitmapEffect.cs
- Visitor.cs
- ParagraphResult.cs
- Effect.cs
- WebPartTracker.cs
- updateconfighost.cs
- AttributeEmitter.cs
- DecodeHelper.cs
- mediaeventshelper.cs
- UnsafeNativeMethods.cs
- StdValidatorsAndConverters.cs
- StorageComplexTypeMapping.cs
- GlyphsSerializer.cs
- SqlMetaData.cs
- TransactionBridgeSection.cs
- XmlNavigatorStack.cs
- AssociationEndMember.cs
- DetailsViewRow.cs
- RIPEMD160.cs
- HttpCacheParams.cs
- WebPartCancelEventArgs.cs
- DrawingBrush.cs
- RegexCompilationInfo.cs
- DynamicFilter.cs
- ReadOnlyDictionary.cs
- FixedPageProcessor.cs
- DataGridViewCellEventArgs.cs
- RemoteWebConfigurationHostServer.cs
- ItemDragEvent.cs
- ListBox.cs
- CodeGen.cs
- SmiEventSink_Default.cs
- WebPartTransformerCollection.cs
- HealthMonitoringSection.cs
- UiaCoreApi.cs
- TabControlAutomationPeer.cs
- AssemblyFilter.cs
- WindowsFormsHostAutomationPeer.cs
- EventLogStatus.cs
- VisualBasicSettingsConverter.cs
- ConstructorNeedsTagAttribute.cs
- HandlerFactoryWrapper.cs
- _ConnectionGroup.cs