Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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. // Copyright (c) Microsoft Corporation. All rights reserved./// 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
- SinglePageViewer.cs
- InputScope.cs
- KeyFrames.cs
- SqlLiftIndependentRowExpressions.cs
- ErrorHandler.cs
- DecoratedNameAttribute.cs
- HttpHandlerActionCollection.cs
- ExecutionContext.cs
- AdRotator.cs
- SessionStateContainer.cs
- HttpResponse.cs
- CachedPathData.cs
- TreeSet.cs
- PageParser.cs
- GeometryValueSerializer.cs
- EdmType.cs
- PermissionSetEnumerator.cs
- Part.cs
- CodeDomSerializationProvider.cs
- ListViewInsertionMark.cs
- TypeUtil.cs
- EntityConnectionStringBuilderItem.cs
- TableRow.cs
- DrawingImage.cs
- IncomingWebRequestContext.cs
- XmlDocument.cs
- XmlIlVisitor.cs
- sqlinternaltransaction.cs
- PermissionAttributes.cs
- HttpsHostedTransportConfiguration.cs
- Timeline.cs
- EmbeddedMailObjectCollectionEditor.cs
- Section.cs
- OdbcDataReader.cs
- Int32RectConverter.cs
- PlaceHolder.cs
- SmiTypedGetterSetter.cs
- ScriptIgnoreAttribute.cs
- PersonalizableAttribute.cs
- PowerEase.cs
- WindowsBrush.cs
- Animatable.cs
- XmlStringTable.cs
- PreApplicationStartMethodAttribute.cs
- ProfessionalColorTable.cs
- SmiSettersStream.cs
- SafeArrayRankMismatchException.cs
- Membership.cs
- IdleTimeoutMonitor.cs
- SeverityFilter.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- TreeViewBindingsEditor.cs
- CompilerTypeWithParams.cs
- ProfileWorkflowElement.cs
- WeakRefEnumerator.cs
- Selection.cs
- LoginAutoFormat.cs
- SID.cs
- TaskExtensions.cs
- ListBoxAutomationPeer.cs
- DocumentSequenceHighlightLayer.cs
- SmiGettersStream.cs
- Section.cs
- LinqDataSourceValidationException.cs
- ThreadAttributes.cs
- Canvas.cs
- SqlClientPermission.cs
- SourceChangedEventArgs.cs
- SecurityKeyType.cs
- SqlDataSourceCommandEventArgs.cs
- TemplateBamlTreeBuilder.cs
- CommandValueSerializer.cs
- XsltOutput.cs
- NumericExpr.cs
- XmlILCommand.cs
- ImageCodecInfo.cs
- ArglessEventHandlerProxy.cs
- ValueHandle.cs
- Buffer.cs
- DataGridAddNewRow.cs
- InstanceNotReadyException.cs
- XmlStreamStore.cs
- NamespaceDisplayAutomationPeer.cs
- DynamicQueryStringParameter.cs
- SqlAliaser.cs
- GridViewColumnCollection.cs
- BitmapCacheBrush.cs
- DetailsViewRowCollection.cs
- DbFunctionCommandTree.cs
- ToolStripMenuItem.cs
- BaseParser.cs
- Odbc32.cs
- ContextMarshalException.cs
- ContentElement.cs
- DrawListViewSubItemEventArgs.cs
- TreePrinter.cs
- WorkflowRuntimeSection.cs
- ScriptIgnoreAttribute.cs
- ParallelTimeline.cs
- Matrix3DConverter.cs