Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / KeyPressEvent.cs / 1305376 / 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. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BypassElement.cs
- OracleParameterBinding.cs
- Padding.cs
- InstalledVoice.cs
- BaseTemplateParser.cs
- OperatingSystem.cs
- ChangeBlockUndoRecord.cs
- OutputScopeManager.cs
- TransformProviderWrapper.cs
- recordstatefactory.cs
- DesignerActionHeaderItem.cs
- DispatcherHookEventArgs.cs
- BrowserCapabilitiesCompiler.cs
- UIElementIsland.cs
- PersonalizableTypeEntry.cs
- ToolStripArrowRenderEventArgs.cs
- SimpleWebHandlerParser.cs
- DateTimeValueSerializer.cs
- SslStream.cs
- ErrorBehavior.cs
- WebPartCollection.cs
- Rotation3D.cs
- SHA384.cs
- TreeNodeBindingCollection.cs
- RelatedPropertyManager.cs
- SubpageParagraph.cs
- ParagraphVisual.cs
- StyleXamlParser.cs
- BindingOperations.cs
- FileNameEditor.cs
- ActivityTypeDesigner.xaml.cs
- ContainerParaClient.cs
- MimeMultiPart.cs
- SqlTransaction.cs
- Themes.cs
- DbConvert.cs
- WorkflowOwnerAsyncResult.cs
- ControlIdConverter.cs
- DescendentsWalker.cs
- InitializingNewItemEventArgs.cs
- MetabaseServerConfig.cs
- FileStream.cs
- InstanceDescriptor.cs
- Console.cs
- SQLByteStorage.cs
- RemotingException.cs
- AspNetHostingPermission.cs
- Walker.cs
- SystemIPv6InterfaceProperties.cs
- SQLInt64.cs
- Base64Stream.cs
- GridSplitterAutomationPeer.cs
- EventManager.cs
- Timer.cs
- Range.cs
- Int16AnimationBase.cs
- CompositeFontInfo.cs
- GACIdentityPermission.cs
- PageContent.cs
- CodeArrayIndexerExpression.cs
- WorkflowServiceAttributesTypeConverter.cs
- EventArgs.cs
- JapaneseLunisolarCalendar.cs
- Validator.cs
- CaseInsensitiveHashCodeProvider.cs
- ProxyElement.cs
- TrackingProfileSerializer.cs
- ParameterCollection.cs
- HtmlTextArea.cs
- DetailsViewDeleteEventArgs.cs
- FirstMatchCodeGroup.cs
- Documentation.cs
- EntityParameter.cs
- AutomationPatternInfo.cs
- TextTreePropertyUndoUnit.cs
- DataGridViewLinkCell.cs
- SystemIPGlobalProperties.cs
- UnsupportedPolicyOptionsException.cs
- SafeThemeHandle.cs
- RequestDescription.cs
- ElementUtil.cs
- ControlFilterExpression.cs
- BoundingRectTracker.cs
- NCryptNative.cs
- SingleSelectRootGridEntry.cs
- RSAPKCS1SignatureDeformatter.cs
- DeviceContext.cs
- NameValueCollection.cs
- CompilationSection.cs
- SoapObjectInfo.cs
- TextDecorationCollection.cs
- ClientRoleProvider.cs
- CheckBox.cs
- CompiledRegexRunnerFactory.cs
- ToggleProviderWrapper.cs
- ValueUtilsSmi.cs
- SrgsElement.cs
- AssemblyFilter.cs
- InternalEnumValidator.cs
- Point3DConverter.cs