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
- NativeMethodsOther.cs
- SmtpTransport.cs
- NameTable.cs
- PeerEndPoint.cs
- ControlBindingsCollection.cs
- CompilerHelpers.cs
- CodeVariableReferenceExpression.cs
- HostVisual.cs
- securitycriticaldata.cs
- SoapHeaderException.cs
- XmlAttribute.cs
- DataGridViewCellMouseEventArgs.cs
- PagesSection.cs
- DetailsViewUpdateEventArgs.cs
- UserPreferenceChangingEventArgs.cs
- ListViewDeleteEventArgs.cs
- DatePicker.cs
- DataPagerCommandEventArgs.cs
- StructuredProperty.cs
- DataKeyPropertyAttribute.cs
- CodeTypeDelegate.cs
- RegexCapture.cs
- EventRouteFactory.cs
- SecurityElement.cs
- SurrogateDataContract.cs
- HMACSHA1.cs
- SafeUserTokenHandle.cs
- Point.cs
- XsltInput.cs
- SafeCryptContextHandle.cs
- HijriCalendar.cs
- Brush.cs
- FormViewRow.cs
- DragCompletedEventArgs.cs
- ServiceReference.cs
- GraphicsPathIterator.cs
- MonthChangedEventArgs.cs
- Random.cs
- SystemNetHelpers.cs
- SmiSettersStream.cs
- D3DImage.cs
- ProcessRequestArgs.cs
- Pen.cs
- IdentityNotMappedException.cs
- PriorityRange.cs
- QuaternionAnimationBase.cs
- QueryOperator.cs
- MailMessage.cs
- OdbcParameter.cs
- StylusPointCollection.cs
- RemotingAttributes.cs
- DefaultValidator.cs
- HttpCacheParams.cs
- XmlObjectSerializerReadContext.cs
- PersistChildrenAttribute.cs
- SimpleApplicationHost.cs
- datacache.cs
- ToolBarTray.cs
- ObjectComplexPropertyMapping.cs
- TriggerCollection.cs
- OrderedEnumerableRowCollection.cs
- XmlSchemaObjectCollection.cs
- ReferenceEqualityComparer.cs
- CommonObjectSecurity.cs
- ManagedFilter.cs
- ActivationService.cs
- CopyNamespacesAction.cs
- DataSourceXmlAttributeAttribute.cs
- PointF.cs
- EncryptedData.cs
- Configuration.cs
- DataGridTextBox.cs
- TrailingSpaceComparer.cs
- EventNotify.cs
- listitem.cs
- DiscoveryClientProtocol.cs
- MimeBasePart.cs
- PermissionAttributes.cs
- ComponentTray.cs
- AnimationStorage.cs
- ExtensionQuery.cs
- FormParameter.cs
- StringReader.cs
- HttpModuleCollection.cs
- WebEvents.cs
- TrustManagerPromptUI.cs
- DBProviderConfigurationHandler.cs
- DataGridViewCellStyleConverter.cs
- TemplateBindingExtensionConverter.cs
- WriteFileContext.cs
- ResourceExpressionBuilder.cs
- VisualTarget.cs
- BridgeDataRecord.cs
- PersistChildrenAttribute.cs
- DynamicResourceExtension.cs
- FrameworkElementFactoryMarkupObject.cs
- ApplicationTrust.cs
- SiteMapDataSourceView.cs
- SspiHelper.cs
- DateTimeSerializationSection.cs