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
- SchemaTableOptionalColumn.cs
- SignatureGenerator.cs
- UnSafeCharBuffer.cs
- FileChangesMonitor.cs
- ListenUriMode.cs
- GridViewRowCollection.cs
- Typeface.cs
- ComponentRenameEvent.cs
- SpecularMaterial.cs
- RootDesignerSerializerAttribute.cs
- ClientBuildManagerCallback.cs
- TransactionFilter.cs
- Int32KeyFrameCollection.cs
- _NegoState.cs
- CqlWriter.cs
- ToolStripPanelCell.cs
- MinimizableAttributeTypeConverter.cs
- EmbeddedMailObjectsCollection.cs
- SystemMulticastIPAddressInformation.cs
- StateInitializationDesigner.cs
- TypefaceCollection.cs
- TableLayoutStyle.cs
- PointAnimationUsingKeyFrames.cs
- ProjectionPath.cs
- SqlDataSourceEnumerator.cs
- ScriptingProfileServiceSection.cs
- TransformPattern.cs
- Parameter.cs
- MessageDecoder.cs
- InvokePattern.cs
- _SslState.cs
- ConnectionInterfaceCollection.cs
- BufferBuilder.cs
- XpsDocumentEvent.cs
- SamlSubjectStatement.cs
- ServerValidateEventArgs.cs
- RootProjectionNode.cs
- SafeLocalAllocation.cs
- HttpDigestClientCredential.cs
- ResourceIDHelper.cs
- ReadingWritingEntityEventArgs.cs
- CodePrimitiveExpression.cs
- PageParserFilter.cs
- ChooseAction.cs
- ToolBar.cs
- XmlStreamStore.cs
- OneOfScalarConst.cs
- GridViewColumnCollection.cs
- PeerNameRecordCollection.cs
- HtmlElement.cs
- FileAuthorizationModule.cs
- DocComment.cs
- MetaColumn.cs
- UnmanagedMarshal.cs
- SubMenuStyleCollection.cs
- SQLMoney.cs
- EllipticalNodeOperations.cs
- Currency.cs
- WindowExtensionMethods.cs
- SqlVersion.cs
- PropertySet.cs
- SchemaInfo.cs
- Tablet.cs
- LayoutManager.cs
- DrawingContextDrawingContextWalker.cs
- PrePostDescendentsWalker.cs
- Win32Exception.cs
- validation.cs
- MetadataFile.cs
- DataTableExtensions.cs
- HtmlTableCell.cs
- WmlTextViewAdapter.cs
- TableLayoutStyle.cs
- Accessible.cs
- NamedObject.cs
- UInt16Converter.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- DocumentSequenceHighlightLayer.cs
- XmlParserContext.cs
- TdsValueSetter.cs
- ChangeNode.cs
- RemoveStoryboard.cs
- WorkflowPrinting.cs
- DataGridCell.cs
- ActivityCodeDomSerializationManager.cs
- StyleXamlTreeBuilder.cs
- MexNamedPipeBindingCollectionElement.cs
- CodeDomLocalizationProvider.cs
- SrgsSubset.cs
- ZipQueryOperator.cs
- StorageAssociationSetMapping.cs
- XmlTypeMapping.cs
- TailPinnedEventArgs.cs
- NotFiniteNumberException.cs
- CodeGroup.cs
- DetailsViewPageEventArgs.cs
- _ListenerRequestStream.cs
- ControlEvent.cs
- UInt32Converter.cs
- InvalidAsynchronousStateException.cs