Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- HtmlMeta.cs
- CodeTypeConstructor.cs
- DetailsViewDeleteEventArgs.cs
- FilteredDataSetHelper.cs
- DataBindingCollection.cs
- Ppl.cs
- EventWaitHandle.cs
- SchemeSettingElementCollection.cs
- AttributeQuery.cs
- Exceptions.cs
- EraserBehavior.cs
- _ConnectionGroup.cs
- AddInDeploymentState.cs
- SiteMapProvider.cs
- XsltContext.cs
- XmlCharCheckingReader.cs
- XmlAttributeAttribute.cs
- CompiledQuery.cs
- StyleXamlTreeBuilder.cs
- LOSFormatter.cs
- IdnElement.cs
- ShaderEffect.cs
- SqlBuilder.cs
- XamlTypeMapperSchemaContext.cs
- Byte.cs
- NativeMethodsOther.cs
- HwndAppCommandInputProvider.cs
- WindowHelperService.cs
- IImplicitResourceProvider.cs
- ValuePattern.cs
- Helpers.cs
- TabItemWrapperAutomationPeer.cs
- DirectionalLight.cs
- Zone.cs
- CFGGrammar.cs
- XXXInfos.cs
- ConfigViewGenerator.cs
- PrePrepareMethodAttribute.cs
- Int32.cs
- ScriptComponentDescriptor.cs
- AppendHelper.cs
- GotoExpression.cs
- AttributeProviderAttribute.cs
- NamespaceMapping.cs
- ConvertEvent.cs
- CommandLibraryHelper.cs
- BitmapEffectOutputConnector.cs
- ColumnMap.cs
- HashCodeCombiner.cs
- UIElementCollection.cs
- DataGridRow.cs
- SqlBulkCopyColumnMappingCollection.cs
- SqlParameter.cs
- InputQueueChannelAcceptor.cs
- IgnoreDeviceFilterElement.cs
- DesignTimeTemplateParser.cs
- ParagraphResult.cs
- ListItem.cs
- OwnerDrawPropertyBag.cs
- TreeViewDesigner.cs
- ByteStack.cs
- WSSecurityPolicy.cs
- IncrementalCompileAnalyzer.cs
- ConsoleCancelEventArgs.cs
- FileNotFoundException.cs
- ContentFilePart.cs
- ObjectNotFoundException.cs
- JournalEntry.cs
- ReferenceEqualityComparer.cs
- DataTemplateKey.cs
- Funcletizer.cs
- RIPEMD160.cs
- DataGridViewColumnHeaderCell.cs
- PhysicalAddress.cs
- OutputScopeManager.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- IgnoreFlushAndCloseStream.cs
- FileDetails.cs
- WriteFileContext.cs
- FlowDocumentScrollViewer.cs
- _HelperAsyncResults.cs
- SafeHandle.cs
- ToolboxControl.cs
- VerticalAlignConverter.cs
- TextSelection.cs
- OracleRowUpdatingEventArgs.cs
- DataColumnChangeEvent.cs
- NativeRecognizer.cs
- Configuration.cs
- RadioButtonDesigner.cs
- SiteMapDataSource.cs
- ServerReliableChannelBinder.cs
- XmlSchemaFacet.cs
- WebPartConnectionsCancelVerb.cs
- ExpandableObjectConverter.cs
- CodeIdentifier.cs
- RoleManagerSection.cs
- Stylesheet.cs
- SchemaTableOptionalColumn.cs
- SessionStateItemCollection.cs