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
- XhtmlBasicListAdapter.cs
- ServiceModelSecurityTokenRequirement.cs
- DataGridCellAutomationPeer.cs
- Metafile.cs
- Type.cs
- EntityClassGenerator.cs
- ControlBindingsCollection.cs
- xdrvalidator.cs
- TrustManager.cs
- SharedStream.cs
- NewExpression.cs
- DataGridViewBindingCompleteEventArgs.cs
- ToolStripSettings.cs
- ExeConfigurationFileMap.cs
- ProcessStartInfo.cs
- AutoGeneratedField.cs
- updateconfighost.cs
- WindowPattern.cs
- VerificationException.cs
- CriticalHandle.cs
- InstanceStore.cs
- FixedTextContainer.cs
- StorageModelBuildProvider.cs
- BuildProvider.cs
- SortKey.cs
- Stream.cs
- XmlAttributeCollection.cs
- XmlUrlEditor.cs
- FreezableDefaultValueFactory.cs
- QilFunction.cs
- DLinqAssociationProvider.cs
- URIFormatException.cs
- LassoHelper.cs
- Registry.cs
- ComponentCollection.cs
- BuilderInfo.cs
- DynamicDiscoSearcher.cs
- EntityDataSourceReferenceGroup.cs
- EntityDataSourceView.cs
- StateBag.cs
- ProgressPage.cs
- RawStylusActions.cs
- WebPartConnectionsCancelVerb.cs
- NameObjectCollectionBase.cs
- ListViewInsertionMark.cs
- RepeaterItemEventArgs.cs
- PromptBuilder.cs
- MasterPageBuildProvider.cs
- DbParameterCollectionHelper.cs
- updatecommandorderer.cs
- TriggerAction.cs
- XPathChildIterator.cs
- ColorAnimation.cs
- OracleBoolean.cs
- DecoderFallback.cs
- ISessionStateStore.cs
- ClientTargetCollection.cs
- SiteMap.cs
- PeerNameResolver.cs
- X509Logo.cs
- GlyphTypeface.cs
- BufferManager.cs
- EntityWithKeyStrategy.cs
- ChannelManager.cs
- IConvertible.cs
- _AutoWebProxyScriptHelper.cs
- Matrix3D.cs
- PointValueSerializer.cs
- ObjectPropertyMapping.cs
- HwndSubclass.cs
- AttachedPropertyInfo.cs
- VirtualizingStackPanel.cs
- ValueHandle.cs
- CompilerErrorCollection.cs
- XPathLexer.cs
- IdentifierCreationService.cs
- SessionIDManager.cs
- ResourceContainer.cs
- HostedHttpContext.cs
- WebBrowserBase.cs
- KerberosRequestorSecurityToken.cs
- FloaterParaClient.cs
- UserControlDocumentDesigner.cs
- GraphicsPath.cs
- MailDefinition.cs
- Visitors.cs
- ExtensionSimplifierMarkupObject.cs
- DataRowCollection.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- WebPartConnection.cs
- AuthenticatedStream.cs
- TextSegment.cs
- ApplicationSecurityInfo.cs
- MemberJoinTreeNode.cs
- TextClipboardData.cs
- ProcessInputEventArgs.cs
- StandardCommands.cs
- TTSVoice.cs
- AssemblyUtil.cs
- StateMachine.cs