Code:
/ FX-1434 / FX-1434 / 1.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
- SweepDirectionValidation.cs
- SystemBrushes.cs
- ResourceCodeDomSerializer.cs
- Scene3D.cs
- DispatcherProcessingDisabled.cs
- ComMethodElementCollection.cs
- LostFocusEventManager.cs
- RankException.cs
- SystemPens.cs
- MouseActionConverter.cs
- UnsafeNativeMethods.cs
- MappingModelBuildProvider.cs
- BitmapCodecInfoInternal.cs
- XmlComment.cs
- InvalidateEvent.cs
- TransformCryptoHandle.cs
- UpdateManifestForBrowserApplication.cs
- DependencyObject.cs
- ExpandableObjectConverter.cs
- Crypto.cs
- SimpleTextLine.cs
- ObjectDataSourceView.cs
- ConnectionStringsExpressionBuilder.cs
- FileSystemInfo.cs
- MapPathBasedVirtualPathProvider.cs
- TranslateTransform.cs
- SelectionRangeConverter.cs
- RequestCachingSection.cs
- RuntimeEnvironment.cs
- DataGridParentRows.cs
- FixedSOMContainer.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- MessageDecoder.cs
- TypeGeneratedEventArgs.cs
- ThreadAttributes.cs
- ButtonField.cs
- PropertyInfoSet.cs
- XmlCDATASection.cs
- Component.cs
- MetadataSource.cs
- TextServicesCompartment.cs
- ETagAttribute.cs
- PersonalizableAttribute.cs
- DataGridViewCheckBoxCell.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- StructuralCache.cs
- SafeEventLogWriteHandle.cs
- UserNameSecurityTokenParameters.cs
- CopyCodeAction.cs
- ProtectedConfigurationSection.cs
- HwndSourceKeyboardInputSite.cs
- CollectionCodeDomSerializer.cs
- HexParser.cs
- TypeLoadException.cs
- FontSizeConverter.cs
- _ChunkParse.cs
- PermissionAttributes.cs
- FlatButtonAppearance.cs
- OpCopier.cs
- ProfileManager.cs
- WebPartZoneBaseDesigner.cs
- documentation.cs
- DetailsView.cs
- FileIOPermission.cs
- SqlBinder.cs
- DataGridViewColumnCollection.cs
- ListBindingHelper.cs
- OdbcConnectionStringbuilder.cs
- xmlfixedPageInfo.cs
- GeometryCombineModeValidation.cs
- SchemaTableColumn.cs
- ReservationCollection.cs
- XsltInput.cs
- ToolStripItemEventArgs.cs
- Matrix3DStack.cs
- Task.cs
- TransformerTypeCollection.cs
- LookupBindingPropertiesAttribute.cs
- ConfigXmlElement.cs
- ThemeDirectoryCompiler.cs
- ReaderWriterLockWrapper.cs
- X509Utils.cs
- NativeMethodsOther.cs
- ResourceDictionary.cs
- ModifierKeysValueSerializer.cs
- LinkedList.cs
- SerializerDescriptor.cs
- SerializationInfo.cs
- IDReferencePropertyAttribute.cs
- XmlElementList.cs
- TypeValidationEventArgs.cs
- SimpleLine.cs
- Calendar.cs
- ObjectStateFormatter.cs
- XmlSerializableWriter.cs
- SqlCommand.cs
- TemplatedMailWebEventProvider.cs
- SignedXml.cs
- PeerTransportElement.cs
- Condition.cs