Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- SqlDataSourceCommandEventArgs.cs
- TypeGeneratedEventArgs.cs
- DirectoryObjectSecurity.cs
- FixUp.cs
- FragmentQueryProcessor.cs
- TTSVoice.cs
- SqlBuffer.cs
- SortDescription.cs
- OSEnvironmentHelper.cs
- DragStartedEventArgs.cs
- TransformPatternIdentifiers.cs
- AmbiguousMatchException.cs
- BaseAppDomainProtocolHandler.cs
- RowBinding.cs
- Ref.cs
- ValidationError.cs
- XmlILModule.cs
- Evidence.cs
- PagesSection.cs
- RuntimeConfig.cs
- TreeViewImageIndexConverter.cs
- CompiledRegexRunnerFactory.cs
- documentsequencetextview.cs
- HelpInfo.cs
- ExternalDataExchangeService.cs
- ProcessThread.cs
- SystemThemeKey.cs
- TextDecorations.cs
- ToolStripPanelRow.cs
- DocumentCollection.cs
- MethodSignatureGenerator.cs
- AbstractDataSvcMapFileLoader.cs
- UIPropertyMetadata.cs
- TriggerBase.cs
- IconHelper.cs
- RoutedCommand.cs
- XmlSchemaAppInfo.cs
- DriveInfo.cs
- DocumentPaginator.cs
- XmlCharType.cs
- AsymmetricKeyExchangeFormatter.cs
- NumericUpDownAccelerationCollection.cs
- OrderedDictionary.cs
- StyleModeStack.cs
- SchemaTypeEmitter.cs
- CatalogZone.cs
- DbQueryCommandTree.cs
- DebugController.cs
- BufferedWebEventProvider.cs
- EncoderExceptionFallback.cs
- ListBase.cs
- securitycriticaldata.cs
- URLAttribute.cs
- Zone.cs
- DataBinder.cs
- LowerCaseStringConverter.cs
- SearchForVirtualItemEventArgs.cs
- NotSupportedException.cs
- SQLMoney.cs
- FormatterServices.cs
- UserPreferenceChangingEventArgs.cs
- Tool.cs
- PerformanceCounters.cs
- datacache.cs
- SmiEventSink_DeferedProcessing.cs
- TokenBasedSet.cs
- ConsumerConnectionPoint.cs
- WmlLiteralTextAdapter.cs
- ErrorProvider.cs
- SmiMetaData.cs
- TimeZoneInfo.cs
- TextSchema.cs
- StateInitializationDesigner.cs
- regiisutil.cs
- OdbcReferenceCollection.cs
- assemblycache.cs
- Classification.cs
- PanelStyle.cs
- DebugView.cs
- Matrix3DValueSerializer.cs
- SecurityHeaderTokenResolver.cs
- DbCommandDefinition.cs
- keycontainerpermission.cs
- DefaultValueConverter.cs
- EnumMember.cs
- NavigationPropertySingletonExpression.cs
- ListenerElementsCollection.cs
- WebPartZoneBaseDesigner.cs
- DirtyTextRange.cs
- DocumentPropertiesDialog.cs
- FamilyMap.cs
- ItemsControl.cs
- NativeCompoundFileAPIs.cs
- ClientUtils.cs
- Canvas.cs
- UnsafeNativeMethods.cs
- Header.cs
- DirectoryInfo.cs
- ContextMenuAutomationPeer.cs
- WebPartDisplayModeEventArgs.cs