Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- FilterQuery.cs
- WeakReferenceEnumerator.cs
- DirectionalLight.cs
- WpfWebRequestHelper.cs
- AutomationTextAttribute.cs
- FontStretch.cs
- SqlDataRecord.cs
- __ComObject.cs
- ToolBarButtonClickEvent.cs
- SQLDouble.cs
- SystemGatewayIPAddressInformation.cs
- SafeRightsManagementSessionHandle.cs
- Cursor.cs
- PageThemeBuildProvider.cs
- ExceptionRoutedEventArgs.cs
- SourceFilter.cs
- NameValueFileSectionHandler.cs
- XPathScanner.cs
- InstanceCreationEditor.cs
- DiagnosticTrace.cs
- HTTPNotFoundHandler.cs
- AutoCompleteStringCollection.cs
- WsatConfiguration.cs
- WindowsMenu.cs
- RoutingConfiguration.cs
- ValueChangedEventManager.cs
- ServiceOperationDetailViewControl.cs
- CodeIdentifier.cs
- TextEditorCharacters.cs
- DataObject.cs
- RepeaterItemCollection.cs
- TreeNodeBindingCollection.cs
- IpcPort.cs
- PiiTraceSource.cs
- WebPartConnectionsCloseVerb.cs
- Transform.cs
- BitmapPalettes.cs
- EntityModelBuildProvider.cs
- ConditionalAttribute.cs
- BindUriHelper.cs
- SoapProtocolReflector.cs
- CheckBoxDesigner.cs
- AsymmetricSignatureDeformatter.cs
- TypeForwardedToAttribute.cs
- ListParaClient.cs
- ReadWriteObjectLock.cs
- CapabilitiesUse.cs
- MeasurementDCInfo.cs
- ReflectionTypeLoadException.cs
- PopupRootAutomationPeer.cs
- DebuggerService.cs
- EditCommandColumn.cs
- SqlDataSourceSelectingEventArgs.cs
- UIElement.cs
- XmlILAnnotation.cs
- SchemaTypeEmitter.cs
- Container.cs
- FormView.cs
- XmlTextWriter.cs
- RestClientProxyHandler.cs
- RegisteredDisposeScript.cs
- WebPartEditorOkVerb.cs
- ProxyWebPartConnectionCollection.cs
- ObjectQuery_EntitySqlExtensions.cs
- RNGCryptoServiceProvider.cs
- DBCommandBuilder.cs
- PropertyItemInternal.cs
- DataGridViewToolTip.cs
- LayoutTableCell.cs
- ExpressionBuilderContext.cs
- FontUnit.cs
- connectionpool.cs
- MeasureItemEvent.cs
- RtType.cs
- SamlConditions.cs
- DataReaderContainer.cs
- TimerElapsedEvenArgs.cs
- GradientSpreadMethodValidation.cs
- ImportCatalogPart.cs
- TextElementEnumerator.cs
- CodeLabeledStatement.cs
- RtfControls.cs
- MailSettingsSection.cs
- DependencyObjectType.cs
- ForeignKeyConstraint.cs
- Dynamic.cs
- XmlJsonWriter.cs
- SdlChannelSink.cs
- ToolStripItemTextRenderEventArgs.cs
- HtmlAnchor.cs
- SqlInternalConnectionTds.cs
- XamlFrame.cs
- TemplatePagerField.cs
- ProgressBarHighlightConverter.cs
- AppDomainFactory.cs
- ArgumentException.cs
- ReferenceCountedObject.cs
- FilterQueryOptionExpression.cs
- GeometryConverter.cs
- Queue.cs