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
- ActivityWithResultValueSerializer.cs
- ConnectionManagementElement.cs
- BitmapEffectInput.cs
- DataList.cs
- SmtpSection.cs
- Atom10FormatterFactory.cs
- MasterPageParser.cs
- SecureStringHasher.cs
- OpenFileDialog.cs
- RectConverter.cs
- DataFormats.cs
- StateMachineExecutionState.cs
- GridViewSortEventArgs.cs
- UserPreferenceChangingEventArgs.cs
- KnownBoxes.cs
- LiteralSubsegment.cs
- ChunkedMemoryStream.cs
- LongValidator.cs
- DependentTransaction.cs
- SendingRequestEventArgs.cs
- DataSetViewSchema.cs
- ModelUIElement3D.cs
- SqlCommand.cs
- ShapeTypeface.cs
- NumericUpDownAcceleration.cs
- DesignerObject.cs
- TableRowCollection.cs
- MatrixKeyFrameCollection.cs
- WebPartZoneCollection.cs
- PriorityQueue.cs
- AmbiguousMatchException.cs
- SslStream.cs
- EraserBehavior.cs
- XmlSignatureManifest.cs
- MailWriter.cs
- BinaryNode.cs
- ResourceIDHelper.cs
- Substitution.cs
- XMLSchema.cs
- StdValidatorsAndConverters.cs
- MsmqProcessProtocolHandler.cs
- WindowsMenu.cs
- WebPartZone.cs
- RequiredAttributeAttribute.cs
- WebPartConnectionsCancelEventArgs.cs
- TextEditorSelection.cs
- RenderingBiasValidation.cs
- DbProviderSpecificTypePropertyAttribute.cs
- RelativeSource.cs
- CreateSequenceResponse.cs
- ToolStripItemDataObject.cs
- StaticSiteMapProvider.cs
- ScriptRegistrationManager.cs
- RenderTargetBitmap.cs
- NonBatchDirectoryCompiler.cs
- SynchronizedCollection.cs
- ServiceOperationInvoker.cs
- RPIdentityRequirement.cs
- TextAnchor.cs
- EntityDataSourceSelectingEventArgs.cs
- Sorting.cs
- TextEffectResolver.cs
- SchemaInfo.cs
- ManipulationVelocities.cs
- TextBoxAutoCompleteSourceConverter.cs
- xmlformatgeneratorstatics.cs
- CustomValidator.cs
- XmlReader.cs
- WindowsFormsLinkLabel.cs
- SharedStatics.cs
- ReflectTypeDescriptionProvider.cs
- HwndHost.cs
- SettingsProperty.cs
- DetailsViewInsertEventArgs.cs
- TcpSocketManager.cs
- xdrvalidator.cs
- ButtonStandardAdapter.cs
- VectorConverter.cs
- Binding.cs
- SelectionProcessor.cs
- XmlCDATASection.cs
- ParentUndoUnit.cs
- Focus.cs
- ImpersonateTokenRef.cs
- XmlQualifiedName.cs
- DayRenderEvent.cs
- TypedAsyncResult.cs
- CodeNamespaceImportCollection.cs
- SpoolingTask.cs
- EventWaitHandleSecurity.cs
- SystemFonts.cs
- FixedFindEngine.cs
- EnumType.cs
- SystemFonts.cs
- Evaluator.cs
- HitTestWithGeometryDrawingContextWalker.cs
- ToolboxItemFilterAttribute.cs
- RowUpdatingEventArgs.cs
- _DigestClient.cs
- RuleSettingsCollection.cs