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
- SoapRpcMethodAttribute.cs
- RegexParser.cs
- PropertyTab.cs
- PackUriHelper.cs
- UIElement3D.cs
- ToolStripContainer.cs
- Tokenizer.cs
- FileLogRecordEnumerator.cs
- MessageEncoder.cs
- OrderedDictionary.cs
- EntityDataReader.cs
- Int16Converter.cs
- RuleSettingsCollection.cs
- ModuleBuilderData.cs
- ComponentDispatcherThread.cs
- PingReply.cs
- PartialToken.cs
- CallbackHandler.cs
- RootBuilder.cs
- PropertyValidationContext.cs
- Keyboard.cs
- CodeDelegateCreateExpression.cs
- CacheRequest.cs
- WebDescriptionAttribute.cs
- FileSystemEnumerable.cs
- ExtendedPropertyCollection.cs
- TransactionManagerProxy.cs
- ControlEvent.cs
- BinHexEncoder.cs
- SQLChars.cs
- NamedPipeDuplicateContext.cs
- Policy.cs
- CodeTryCatchFinallyStatement.cs
- UpdateEventArgs.cs
- PermissionListSet.cs
- DataGridViewTopRowAccessibleObject.cs
- ButtonField.cs
- WebSysDefaultValueAttribute.cs
- AndCondition.cs
- UnmanagedMemoryAccessor.cs
- ManagementNamedValueCollection.cs
- SetIterators.cs
- TableRow.cs
- XhtmlConformanceSection.cs
- Int16Converter.cs
- QilInvoke.cs
- SelectedDatesCollection.cs
- panel.cs
- SingleConverter.cs
- XhtmlBasicLinkAdapter.cs
- ComplexTypeEmitter.cs
- DelegatingHeader.cs
- ViewgenGatekeeper.cs
- XmlSubtreeReader.cs
- ClientConfigurationSystem.cs
- CultureInfoConverter.cs
- ErrorItem.cs
- UshortList2.cs
- SQLInt32Storage.cs
- StreamSecurityUpgradeProvider.cs
- EdmItemCollection.OcAssemblyCache.cs
- GlobalEventManager.cs
- DataGridSortingEventArgs.cs
- EmptyReadOnlyDictionaryInternal.cs
- RuntimeHelpers.cs
- ArrayConverter.cs
- HashStream.cs
- ResXBuildProvider.cs
- Viewport3DAutomationPeer.cs
- RuntimeArgumentHandle.cs
- KeyboardNavigation.cs
- EventLogger.cs
- dsa.cs
- UrlPath.cs
- Frame.cs
- ZoneMembershipCondition.cs
- NestedContainer.cs
- SafeSecurityHandles.cs
- WebCategoryAttribute.cs
- ScriptIgnoreAttribute.cs
- HttpHandlerActionCollection.cs
- ListBoxAutomationPeer.cs
- ToolZone.cs
- DetailsViewDeletedEventArgs.cs
- ADMembershipProvider.cs
- SettingsPropertyIsReadOnlyException.cs
- ClonableStack.cs
- ICspAsymmetricAlgorithm.cs
- FixedSOMTable.cs
- TextClipboardData.cs
- SecurityDocument.cs
- AccessibleObject.cs
- ToolStripDropDown.cs
- TableParaClient.cs
- ModuleElement.cs
- DebugView.cs
- BitVector32.cs
- EncoderFallback.cs
- WinOEToolBoxItem.cs
- CornerRadiusConverter.cs