Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- NotificationContext.cs
- DashStyle.cs
- DataGridViewRowCancelEventArgs.cs
- Types.cs
- PopupControlService.cs
- CapabilitiesSection.cs
- EmptyImpersonationContext.cs
- ClientType.cs
- NetSectionGroup.cs
- unitconverter.cs
- ReadOnlyAttribute.cs
- EventLogSession.cs
- KeyFrames.cs
- CultureTable.cs
- SocketElement.cs
- glyphs.cs
- BitmapEffectGroup.cs
- EncoderParameters.cs
- CommandBindingCollection.cs
- complextypematerializer.cs
- FileDataSourceCache.cs
- VisualStyleTypesAndProperties.cs
- ToolStripAdornerWindowService.cs
- RefreshResponseInfo.cs
- Control.cs
- AutoSizeToolBoxItem.cs
- BatchServiceHost.cs
- KeyManager.cs
- Transform3DGroup.cs
- QuotedPrintableStream.cs
- ProcessModelSection.cs
- GACMembershipCondition.cs
- ExpressionPrinter.cs
- DataGridViewColumnHeaderCell.cs
- SortKey.cs
- clipboard.cs
- _UriTypeConverter.cs
- MatrixAnimationUsingKeyFrames.cs
- UInt32Converter.cs
- IApplicationTrustManager.cs
- StateWorkerRequest.cs
- DependencyObjectValidator.cs
- BasicBrowserDialog.cs
- DoubleLink.cs
- CalculatedColumn.cs
- _SSPIWrapper.cs
- DispatcherObject.cs
- DataGridPageChangedEventArgs.cs
- PrtCap_Reader.cs
- X509Certificate.cs
- CookielessHelper.cs
- SharedMemory.cs
- TransformCollection.cs
- HttpListenerContext.cs
- ManagementObjectCollection.cs
- EntityTransaction.cs
- CfgParser.cs
- DataProtection.cs
- BitmapEncoder.cs
- IndentedWriter.cs
- RemoteWebConfigurationHost.cs
- WinFormsComponentEditor.cs
- SessionStateContainer.cs
- EncryptedPackageFilter.cs
- TypeConverterBase.cs
- RuntimeConfigurationRecord.cs
- ReceiveActivityDesigner.cs
- DropShadowBitmapEffect.cs
- CodeTypeParameterCollection.cs
- StaticExtensionConverter.cs
- Range.cs
- DetailsViewInsertedEventArgs.cs
- BamlCollectionHolder.cs
- SqlTransaction.cs
- HandlerBase.cs
- ProjectionNode.cs
- Util.cs
- _AcceptOverlappedAsyncResult.cs
- EmptyEnumerator.cs
- VBIdentifierDesigner.xaml.cs
- ConcatQueryOperator.cs
- AsymmetricSignatureDeformatter.cs
- oledbmetadatacollectionnames.cs
- UnmanagedMemoryStreamWrapper.cs
- PartManifestEntry.cs
- XPathDocumentIterator.cs
- CodeMemberField.cs
- IBuiltInEvidence.cs
- designeractionlistschangedeventargs.cs
- ContentHostHelper.cs
- DesignTimeHTMLTextWriter.cs
- MessageHeaderDescriptionCollection.cs
- PerformanceCounterPermissionEntry.cs
- ChangeInterceptorAttribute.cs
- TextBoxRenderer.cs
- TreeViewImageKeyConverter.cs
- ListView.cs
- BitArray.cs
- TypeLoadException.cs
- ReadOnlyHierarchicalDataSourceView.cs