Code:
/ 4.0 / 4.0 / untmp / 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. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DispatcherExceptionFilterEventArgs.cs
- SmtpFailedRecipientsException.cs
- BooleanStorage.cs
- DataGridViewCellConverter.cs
- CuspData.cs
- WebServiceErrorEvent.cs
- ContainerActivationHelper.cs
- SqlBulkCopyColumnMapping.cs
- EntityReference.cs
- XmlAttributeOverrides.cs
- StandardCommandToolStripMenuItem.cs
- InstanceDescriptor.cs
- PerfProviderCollection.cs
- ZoneIdentityPermission.cs
- SrgsDocument.cs
- WorkflowHostingEndpoint.cs
- InstanceNormalEvent.cs
- HtmlTitle.cs
- PropertyNames.cs
- RepeatButtonAutomationPeer.cs
- BuildResultCache.cs
- ContentOperations.cs
- ContainerVisual.cs
- DataBoundControl.cs
- DataSourceSerializationException.cs
- TextMetrics.cs
- FieldNameLookup.cs
- Util.cs
- BamlTreeUpdater.cs
- InternalRelationshipCollection.cs
- ControlsConfig.cs
- CommandBindingCollection.cs
- SelectionEditingBehavior.cs
- PrintPreviewControl.cs
- MetadataItemCollectionFactory.cs
- StreamGeometry.cs
- SafeCoTaskMem.cs
- SecurityPolicySection.cs
- SymbolEqualComparer.cs
- ScrollPatternIdentifiers.cs
- MessagePartDescription.cs
- WCFServiceClientProxyGenerator.cs
- HttpListenerException.cs
- IPipelineRuntime.cs
- DirectoryRedirect.cs
- PersonalizationState.cs
- OutputCacheProfileCollection.cs
- CodeTryCatchFinallyStatement.cs
- CharUnicodeInfo.cs
- Matrix.cs
- TextRangeEdit.cs
- Int16Animation.cs
- MsmqIntegrationReceiveParameters.cs
- DataObjectCopyingEventArgs.cs
- IndexingContentUnit.cs
- CacheMode.cs
- SettingsPropertyIsReadOnlyException.cs
- KnownIds.cs
- PageCache.cs
- StringFormat.cs
- XAMLParseException.cs
- DesigntimeLicenseContext.cs
- QuaternionKeyFrameCollection.cs
- BackStopAuthenticationModule.cs
- FuncCompletionCallbackWrapper.cs
- FontUnitConverter.cs
- CaseStatementProjectedSlot.cs
- ResolvedKeyFrameEntry.cs
- XPathParser.cs
- Int64.cs
- SessionStateSection.cs
- X509CertificateCollection.cs
- OptimalTextSource.cs
- XhtmlBasicTextBoxAdapter.cs
- Compress.cs
- CurrencyManager.cs
- FormViewPagerRow.cs
- MsmqSecureHashAlgorithm.cs
- XhtmlBasicObjectListAdapter.cs
- OleDbConnection.cs
- CacheChildrenQuery.cs
- RankException.cs
- ResourcePermissionBaseEntry.cs
- IndexerNameAttribute.cs
- CodeParameterDeclarationExpression.cs
- DesigntimeLicenseContext.cs
- NumericPagerField.cs
- OleDbEnumerator.cs
- AffineTransform3D.cs
- InputBinder.cs
- Authorization.cs
- MenuItem.cs
- DataGridTextBoxColumn.cs
- SystemParameters.cs
- XPathNode.cs
- SupportsEventValidationAttribute.cs
- RectangleGeometry.cs
- NotifyIcon.cs
- HMACSHA384.cs
- CounterSample.cs