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
- AssemblyAttributes.cs
- SoapReflectionImporter.cs
- SkinBuilder.cs
- HtmlMeta.cs
- RemoteCryptoDecryptRequest.cs
- GridPatternIdentifiers.cs
- BindingGroup.cs
- _ProxyChain.cs
- ParseHttpDate.cs
- SelectedCellsCollection.cs
- httpstaticobjectscollection.cs
- Common.cs
- RoutingTable.cs
- LicenseException.cs
- MobileUserControl.cs
- SamlAttributeStatement.cs
- EmptyControlCollection.cs
- HtmlInputControl.cs
- AuthenticationModuleElement.cs
- HttpRequestCacheValidator.cs
- Journaling.cs
- DataGridCaption.cs
- Helper.cs
- ChannelManager.cs
- BigInt.cs
- BinaryConverter.cs
- SQLDecimal.cs
- DocumentViewerBase.cs
- XmlNavigatorStack.cs
- BitmapEffectInputData.cs
- Group.cs
- DataListItemCollection.cs
- EventEntry.cs
- SymbolUsageManager.cs
- OperandQuery.cs
- TabControl.cs
- PasswordDeriveBytes.cs
- HealthMonitoringSection.cs
- ZipIOCentralDirectoryBlock.cs
- CorrelationResolver.cs
- XPathChildIterator.cs
- DataSetMappper.cs
- RangeBase.cs
- WindowsEditBox.cs
- StateMachineWorkflowDesigner.cs
- SymmetricKeyWrap.cs
- BlockCollection.cs
- StringTraceRecord.cs
- ClientTargetSection.cs
- ObjectStateEntryDbDataRecord.cs
- TransformerTypeCollection.cs
- SessionEndingEventArgs.cs
- WindowsAuthenticationModule.cs
- basecomparevalidator.cs
- AddressingProperty.cs
- OleDbFactory.cs
- DataColumnCollection.cs
- DependencyPropertyKind.cs
- LookupNode.cs
- Utils.cs
- TemplateBindingExpressionConverter.cs
- Rss20ItemFormatter.cs
- XmlDocument.cs
- ParserStreamGeometryContext.cs
- Enum.cs
- UnsafeNativeMethods.cs
- HiddenFieldDesigner.cs
- ArraySegment.cs
- InstanceData.cs
- MergeFilterQuery.cs
- ControlType.cs
- WorkflowStateRollbackService.cs
- FixedSOMSemanticBox.cs
- CodeGroup.cs
- AttributeData.cs
- FontFamilyIdentifier.cs
- TypeElement.cs
- NodeFunctions.cs
- AssemblyCollection.cs
- TextEditorMouse.cs
- AmbiguousMatchException.cs
- externdll.cs
- BaseParaClient.cs
- ProjectionPathBuilder.cs
- TextEffect.cs
- SemaphoreFullException.cs
- SubMenuStyle.cs
- RowToFieldTransformer.cs
- WriteFileContext.cs
- MultilineStringConverter.cs
- SQLInt64Storage.cs
- BinHexDecoder.cs
- ToolStripPanelRow.cs
- ObjectNavigationPropertyMapping.cs
- Section.cs
- XmlNamespaceDeclarationsAttribute.cs
- SafeEventLogWriteHandle.cs
- Divide.cs
- RoleManagerEventArgs.cs
- SQLSingle.cs