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
- CodeCompileUnit.cs
- WindowsListViewGroup.cs
- WaitHandle.cs
- SignedPkcs7.cs
- COM2ExtendedTypeConverter.cs
- WindowProviderWrapper.cs
- DataGridItemCollection.cs
- FocusChangedEventArgs.cs
- SQLSingleStorage.cs
- ToolStripContentPanel.cs
- hresults.cs
- DispatcherEventArgs.cs
- QuerySubExprEliminator.cs
- DataGridCell.cs
- AuthenticationSection.cs
- CodeThrowExceptionStatement.cs
- CmsInterop.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- XXXInfos.cs
- DTCTransactionManager.cs
- SecurityPolicySection.cs
- XmlMessageFormatter.cs
- FrameworkContentElementAutomationPeer.cs
- ViewStateModeByIdAttribute.cs
- PointCollection.cs
- EncryptedReference.cs
- RepeaterItem.cs
- ClientScriptItemCollection.cs
- OledbConnectionStringbuilder.cs
- MeasureData.cs
- SqlErrorCollection.cs
- _Events.cs
- CqlParserHelpers.cs
- ValidationHelper.cs
- UdpReplyToBehavior.cs
- HttpContext.cs
- RotateTransform.cs
- TextSimpleMarkerProperties.cs
- Scripts.cs
- ConfigUtil.cs
- WebConfigurationHost.cs
- SingleObjectCollection.cs
- BoundPropertyEntry.cs
- EventlogProvider.cs
- TableAutomationPeer.cs
- BitmapEffectGroup.cs
- GradientSpreadMethodValidation.cs
- NameNode.cs
- TraceLevelHelper.cs
- StrongTypingException.cs
- XmlArrayItemAttribute.cs
- ObjectConverter.cs
- DrawingContextWalker.cs
- AmbientProperties.cs
- GridEntry.cs
- OleDbParameter.cs
- NetworkAddressChange.cs
- HwndSource.cs
- ServiceOperation.cs
- DesignerProperties.cs
- PropertyNames.cs
- DynamicPropertyReader.cs
- EntityContainer.cs
- SafeMILHandle.cs
- HScrollProperties.cs
- ProfilePropertyNameValidator.cs
- SafeRegistryHandle.cs
- LinqDataView.cs
- Label.cs
- TextServicesManager.cs
- MetricEntry.cs
- DefaultConfirmation.cs
- SignatureGenerator.cs
- UrlMappingCollection.cs
- XmlSerializerSection.cs
- ComplexBindingPropertiesAttribute.cs
- LinkGrep.cs
- ObjectPersistData.cs
- Line.cs
- Atom10ItemFormatter.cs
- WebConfigurationHost.cs
- TypeDelegator.cs
- HebrewNumber.cs
- unsafeIndexingFilterStream.cs
- XMLUtil.cs
- SourceInterpreter.cs
- GeneralTransformCollection.cs
- RangeValuePattern.cs
- SwitchAttribute.cs
- Clause.cs
- AppDomainProtocolHandler.cs
- TransformCryptoHandle.cs
- XamlToRtfParser.cs
- Brush.cs
- EntityDataSourceContainerNameItem.cs
- FixedSOMTextRun.cs
- Bidi.cs
- PropertyEmitter.cs
- ComContractElementCollection.cs
- FormsAuthenticationTicket.cs