Code:
/ DotNET / DotNET / 8.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
- LogStore.cs
- MetadataExchangeClient.cs
- RegexCompilationInfo.cs
- OperatingSystem.cs
- ExceptionHandlers.cs
- EntityKeyElement.cs
- ASCIIEncoding.cs
- Permission.cs
- StagingAreaInputItem.cs
- SecureStringHasher.cs
- FileUpload.cs
- GridViewColumn.cs
- EncryptedHeader.cs
- SystemSounds.cs
- EnlistmentState.cs
- ElementHost.cs
- CrossAppDomainChannel.cs
- SettingsAttributes.cs
- Action.cs
- DataTable.cs
- CalendarAutoFormatDialog.cs
- TypeDependencyAttribute.cs
- panel.cs
- BindingExpressionBase.cs
- RegexCapture.cs
- Polyline.cs
- LayoutTableCell.cs
- ValidatedControlConverter.cs
- DbMetaDataFactory.cs
- SoapFaultCodes.cs
- HelpEvent.cs
- HttpCapabilitiesBase.cs
- AnimationLayer.cs
- ConfigurationManagerInternalFactory.cs
- DbQueryCommandTree.cs
- WorkflowViewManager.cs
- SchemaDeclBase.cs
- NTAccount.cs
- RowToFieldTransformer.cs
- IfJoinedCondition.cs
- ComplexPropertyEntry.cs
- HttpWriter.cs
- SqlErrorCollection.cs
- AdornedElementPlaceholder.cs
- FixedSOMSemanticBox.cs
- TableItemStyle.cs
- XPathAncestorIterator.cs
- WindowsTooltip.cs
- ConstructorExpr.cs
- DataServices.cs
- Compiler.cs
- TableCellsCollectionEditor.cs
- TagPrefixCollection.cs
- MeshGeometry3D.cs
- ChineseLunisolarCalendar.cs
- Scripts.cs
- EmbossBitmapEffect.cs
- XmlObjectSerializer.cs
- FormsAuthenticationCredentials.cs
- XamlPointCollectionSerializer.cs
- RoamingStoreFile.cs
- SizeConverter.cs
- PolicyChain.cs
- TransformValueSerializer.cs
- TakeOrSkipQueryOperator.cs
- ScrollBar.cs
- TextTreeNode.cs
- LifetimeServices.cs
- DoubleStorage.cs
- DBParameter.cs
- DBConnectionString.cs
- MulticastNotSupportedException.cs
- CmsInterop.cs
- WebControlParameterProxy.cs
- Environment.cs
- Help.cs
- InputScope.cs
- ConfigXmlDocument.cs
- SignatureToken.cs
- COM2ColorConverter.cs
- AttributeUsageAttribute.cs
- UpDownEvent.cs
- VectorCollectionConverter.cs
- NodeFunctions.cs
- PictureBox.cs
- AsyncResult.cs
- WebPartCancelEventArgs.cs
- LambdaCompiler.Address.cs
- CompiledIdentityConstraint.cs
- ChtmlPhoneCallAdapter.cs
- QueryExpr.cs
- Empty.cs
- TracePayload.cs
- NavigationProgressEventArgs.cs
- FileUtil.cs
- OptimisticConcurrencyException.cs
- SafeNativeMethods.cs
- Geometry.cs
- ChtmlPageAdapter.cs
- SettingsBase.cs