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
- SqlRowUpdatingEvent.cs
- MemberRestriction.cs
- ReferentialConstraint.cs
- PinnedBufferMemoryStream.cs
- StrokeSerializer.cs
- OleCmdHelper.cs
- ColorMap.cs
- ConfigurationHandlersInstallComponent.cs
- UnsafeMethods.cs
- LineVisual.cs
- DataControlLinkButton.cs
- XmlTextAttribute.cs
- DataList.cs
- XmlSchemaCollection.cs
- ComponentEditorPage.cs
- TableCell.cs
- XPathQueryGenerator.cs
- ContextMenuService.cs
- InstanceCreationEditor.cs
- RequestNavigateEventArgs.cs
- ContextStack.cs
- GenericRootAutomationPeer.cs
- OperationContractAttribute.cs
- TemplateInstanceAttribute.cs
- SqlAliasesReferenced.cs
- TreeNodeBinding.cs
- ModelPropertyCollectionImpl.cs
- GPStream.cs
- CurrencyManager.cs
- TextOutput.cs
- InheritanceRules.cs
- ChangeToolStripParentVerb.cs
- DateTimeStorage.cs
- BitmapEffectInput.cs
- LocalFileSettingsProvider.cs
- MasterPage.cs
- X509UI.cs
- Inflater.cs
- ListSortDescription.cs
- CodeStatementCollection.cs
- DescendantQuery.cs
- WebEncodingValidatorAttribute.cs
- ContextStaticAttribute.cs
- Translator.cs
- SimpleType.cs
- CacheOutputQuery.cs
- ConfigXmlAttribute.cs
- QilParameter.cs
- JournalEntry.cs
- IProducerConsumerCollection.cs
- CancellationHandlerDesigner.cs
- DeclarativeConditionsCollection.cs
- SqlHelper.cs
- ErrorWrapper.cs
- XmlImplementation.cs
- TaiwanLunisolarCalendar.cs
- PipelineComponent.cs
- IntSecurity.cs
- ConfigurationValues.cs
- safelinkcollection.cs
- FormsAuthenticationUserCollection.cs
- ScrollData.cs
- BinHexEncoder.cs
- Rule.cs
- SafeNativeMethods.cs
- Light.cs
- ControlCachePolicy.cs
- ThemeDictionaryExtension.cs
- BaseCollection.cs
- SynchronizingStream.cs
- AdjustableArrowCap.cs
- MeasurementDCInfo.cs
- SqlDataSourceCommandParser.cs
- ConstructorNeedsTagAttribute.cs
- SafeWaitHandle.cs
- InlineUIContainer.cs
- SelectionProviderWrapper.cs
- ProxyGenerationError.cs
- XmlElementAttribute.cs
- DataGridViewColumnCollection.cs
- ConfigurationManagerHelper.cs
- IntMinMaxAggregationOperator.cs
- DbConnectionPoolCounters.cs
- EnumerableCollectionView.cs
- GregorianCalendarHelper.cs
- WebPartCancelEventArgs.cs
- SerializationHelper.cs
- CatalogUtil.cs
- JulianCalendar.cs
- DocumentViewerAutomationPeer.cs
- SizeChangedEventArgs.cs
- ToolStripPanelRow.cs
- DynamicDocumentPaginator.cs
- DetailsViewDeletedEventArgs.cs
- BamlCollectionHolder.cs
- BrowserCapabilitiesFactoryBase.cs
- Type.cs
- DecoderExceptionFallback.cs
- AnonymousIdentificationSection.cs
- ConnectionManagementElement.cs