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
- StringAnimationUsingKeyFrames.cs
- MediaScriptCommandRoutedEventArgs.cs
- TextDecorationCollection.cs
- Decorator.cs
- Vector3DValueSerializer.cs
- _NetworkingPerfCounters.cs
- CounterSample.cs
- TimeoutException.cs
- SqlNotificationRequest.cs
- _Events.cs
- Maps.cs
- WebScriptEnablingElement.cs
- PropertyEmitterBase.cs
- XmlAttributes.cs
- LocalBuilder.cs
- Assert.cs
- HebrewCalendar.cs
- HandlerFactoryCache.cs
- CustomAttributeBuilder.cs
- base64Transforms.cs
- DecoderExceptionFallback.cs
- IssuanceLicense.cs
- Profiler.cs
- RightsManagementPermission.cs
- XmlSchemaAttributeGroup.cs
- SafeRightsManagementHandle.cs
- DynamicResourceExtension.cs
- HttpListenerRequestTraceRecord.cs
- WebControl.cs
- ScrollItemPattern.cs
- WeakEventManager.cs
- DrawingAttributes.cs
- AnnotationObservableCollection.cs
- HostingEnvironmentException.cs
- DataGridViewCellValueEventArgs.cs
- TimeEnumHelper.cs
- Sequence.cs
- TextRenderer.cs
- VirtualDirectoryMapping.cs
- ColumnHeaderConverter.cs
- ScopeCompiler.cs
- SoundPlayerAction.cs
- QilNode.cs
- DynamicRenderer.cs
- ThumbAutomationPeer.cs
- FacetValueContainer.cs
- CommandManager.cs
- HasCopySemanticsAttribute.cs
- PackagePart.cs
- OleAutBinder.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- SupportsEventValidationAttribute.cs
- PeerApplication.cs
- TreeNodeCollection.cs
- ServiceEndpointElement.cs
- FileUtil.cs
- EntityRecordInfo.cs
- UnsafeNativeMethods.cs
- InsufficientExecutionStackException.cs
- ScriptComponentDescriptor.cs
- MenuEventArgs.cs
- _LocalDataStoreMgr.cs
- SqlBinder.cs
- PenThread.cs
- DataGridViewLinkCell.cs
- ContentPathSegment.cs
- WebResourceUtil.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- ChangeBlockUndoRecord.cs
- ToolboxDataAttribute.cs
- Unit.cs
- _TransmitFileOverlappedAsyncResult.cs
- WizardPanelChangingEventArgs.cs
- ObjectDataSourceDesigner.cs
- WSSecurityJan2004.cs
- MessageSecurityOverHttp.cs
- Ray3DHitTestResult.cs
- WmlControlAdapter.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- HopperCache.cs
- OpacityConverter.cs
- SqlLiftWhereClauses.cs
- SpellerHighlightLayer.cs
- ToolStripComboBox.cs
- Vector3D.cs
- EventLogEntryCollection.cs
- Statements.cs
- LinqDataSourceContextEventArgs.cs
- COM2ComponentEditor.cs
- ProtocolElementCollection.cs
- IdleTimeoutMonitor.cs
- DataPagerField.cs
- DocumentViewerHelper.cs
- ListViewItemMouseHoverEvent.cs
- ShaderRenderModeValidation.cs
- XMLDiffLoader.cs
- OdbcStatementHandle.cs
- RangeEnumerable.cs
- KnownIds.cs
- MeasurementDCInfo.cs