Code:
/ 4.0 / 4.0 / 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. /// // 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
- HtmlInputButton.cs
- HierarchicalDataBoundControl.cs
- XmlSchemaAnnotation.cs
- SafeHandles.cs
- PathSegmentCollection.cs
- TerminatorSinks.cs
- DataTableTypeConverter.cs
- DataGridViewCheckBoxCell.cs
- XmlSchemaSimpleType.cs
- SizeConverter.cs
- ListViewInsertEventArgs.cs
- SizeLimitedCache.cs
- PartialClassGenerationTask.cs
- WindowsListBox.cs
- TextSimpleMarkerProperties.cs
- TextBoxAutoCompleteSourceConverter.cs
- RootProfilePropertySettingsCollection.cs
- Matrix3D.cs
- PersonalizationProvider.cs
- ValidatorAttribute.cs
- MenuRendererStandards.cs
- BitmapMetadataEnumerator.cs
- Privilege.cs
- MemberDescriptor.cs
- MouseButton.cs
- EntityClassGenerator.cs
- RecipientServiceModelSecurityTokenRequirement.cs
- BaseCodeDomTreeGenerator.cs
- AppDomainUnloadedException.cs
- MergeLocalizationDirectives.cs
- DataServiceProcessingPipelineEventArgs.cs
- HttpRawResponse.cs
- ExceptionUtil.cs
- PagesChangedEventArgs.cs
- ImportContext.cs
- QueryCacheKey.cs
- TextRunCache.cs
- BitmapPalette.cs
- ParameterModifier.cs
- WindowsFormsLinkLabel.cs
- RuleValidation.cs
- ThumbAutomationPeer.cs
- Interlocked.cs
- HeaderLabel.cs
- AnonymousIdentificationSection.cs
- ColumnHeaderCollectionEditor.cs
- StringArrayConverter.cs
- XappLauncher.cs
- HostVisual.cs
- WindowsListViewItemCheckBox.cs
- GridViewRowPresenterBase.cs
- ArrayElementGridEntry.cs
- __FastResourceComparer.cs
- StringKeyFrameCollection.cs
- ProcessHostFactoryHelper.cs
- EdmType.cs
- EmptyStringExpandableObjectConverter.cs
- ConnectionPointCookie.cs
- FileDialogCustomPlace.cs
- XamlReaderConstants.cs
- DiscoveryService.cs
- ElementUtil.cs
- JsonDeserializer.cs
- DecimalMinMaxAggregationOperator.cs
- UniqueEventHelper.cs
- VSDExceptions.cs
- Condition.cs
- RestClientProxyHandler.cs
- ColorTranslator.cs
- XmlTextReaderImpl.cs
- ClientConfigurationHost.cs
- HtmlInputImage.cs
- ToolStripHighContrastRenderer.cs
- PriorityBinding.cs
- InlineCategoriesDocument.cs
- control.ime.cs
- SmtpDigestAuthenticationModule.cs
- OleDbSchemaGuid.cs
- ConnectionConsumerAttribute.cs
- basecomparevalidator.cs
- SoapObjectInfo.cs
- SpecularMaterial.cs
- SingleSelectRootGridEntry.cs
- SpeechDetectedEventArgs.cs
- XmlSchemaAnnotation.cs
- ToolStripDropDownItem.cs
- DesignerForm.cs
- ConfigXmlComment.cs
- MruCache.cs
- EventNotify.cs
- ActivityExecutionFilter.cs
- SiteMapPath.cs
- SimplePropertyEntry.cs
- WindowsFormsHostPropertyMap.cs
- IISUnsafeMethods.cs
- BuildProviderUtils.cs
- DoubleKeyFrameCollection.cs
- TextOnlyOutput.cs
- RemoteWebConfigurationHostStream.cs
- TransformerInfoCollection.cs