Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- UniqueConstraint.cs
- SingleAnimationUsingKeyFrames.cs
- AsymmetricSignatureDeformatter.cs
- XmlSchemas.cs
- CompensationToken.cs
- TextBoxDesigner.cs
- AnnotationResourceCollection.cs
- HttpHeaderCollection.cs
- EventDescriptor.cs
- OpacityConverter.cs
- CreateRefExpr.cs
- XmlNodeList.cs
- EmissiveMaterial.cs
- ClientFormsAuthenticationMembershipProvider.cs
- DbConnectionFactory.cs
- ObjectView.cs
- ViewBase.cs
- PersonalizationState.cs
- FlowLayoutPanel.cs
- WebBrowserEvent.cs
- CompositeDataBoundControl.cs
- XmlEncodedRawTextWriter.cs
- CookielessData.cs
- BindingCompleteEventArgs.cs
- QilBinary.cs
- CngKey.cs
- ArgumentDirectionHelper.cs
- QuaternionAnimationBase.cs
- SerTrace.cs
- ValidationResult.cs
- HwndHostAutomationPeer.cs
- Nullable.cs
- SizeChangedEventArgs.cs
- SafeUserTokenHandle.cs
- ToolBarButton.cs
- NonSerializedAttribute.cs
- CultureTable.cs
- CodeArgumentReferenceExpression.cs
- RtfNavigator.cs
- SingleAnimation.cs
- StickyNoteAnnotations.cs
- ReverseInheritProperty.cs
- CngAlgorithmGroup.cs
- PackagePart.cs
- SystemException.cs
- WebPartConnectionsCloseVerb.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- FilteredXmlReader.cs
- SecurityDescriptor.cs
- HtmlInputPassword.cs
- StreamSecurityUpgradeInitiatorBase.cs
- BamlWriter.cs
- DiscoveryDocumentSearchPattern.cs
- UpdateManifestForBrowserApplication.cs
- MemberInfoSerializationHolder.cs
- LabelAutomationPeer.cs
- TextTreeTextElementNode.cs
- SmiEventSink.cs
- Gdiplus.cs
- ListManagerBindingsCollection.cs
- odbcmetadatacollectionnames.cs
- ReadOnlyAttribute.cs
- WebPartManagerInternals.cs
- DbConnectionOptions.cs
- Peer.cs
- MinimizableAttributeTypeConverter.cs
- NonPrimarySelectionGlyph.cs
- DesignerActionPropertyItem.cs
- ChannelListenerBase.cs
- ServiceBehaviorAttribute.cs
- _BufferOffsetSize.cs
- TextBoxRenderer.cs
- DateTimeSerializationSection.cs
- DPAPIProtectedConfigurationProvider.cs
- Item.cs
- DPAPIProtectedConfigurationProvider.cs
- ContentType.cs
- MLangCodePageEncoding.cs
- Point3DValueSerializer.cs
- ActionFrame.cs
- MobileContainerDesigner.cs
- Emitter.cs
- PostBackTrigger.cs
- AbstractExpressions.cs
- LinearGradientBrush.cs
- GlobalEventManager.cs
- MulticastDelegate.cs
- ListenerTraceUtility.cs
- CompositionAdorner.cs
- AppearanceEditorPart.cs
- CmsUtils.cs
- DiagnosticsConfigurationHandler.cs
- PageTheme.cs
- XmlSortKeyAccumulator.cs
- BindableAttribute.cs
- FormViewUpdatedEventArgs.cs
- BitmapEffectGroup.cs
- TextElementEditingBehaviorAttribute.cs
- RewritingValidator.cs
- DataGridViewTopRowAccessibleObject.cs