Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- DbSetClause.cs
- TraceSwitch.cs
- XPathAncestorIterator.cs
- CustomError.cs
- NativeCppClassAttribute.cs
- BypassElement.cs
- SessionEndingEventArgs.cs
- OracleTransaction.cs
- PlainXmlWriter.cs
- BindingBase.cs
- TreeViewCancelEvent.cs
- CompilationLock.cs
- VersionValidator.cs
- FilterException.cs
- AnnotationMap.cs
- CodeTypeMemberCollection.cs
- CalendarDesigner.cs
- CacheForPrimitiveTypes.cs
- AttachInfo.cs
- SafeNativeMethodsCLR.cs
- Message.cs
- RawStylusInputCustomData.cs
- ControlsConfig.cs
- RtfToXamlLexer.cs
- AxHost.cs
- RealizedColumnsBlock.cs
- WebPartCloseVerb.cs
- HttpWriter.cs
- InstanceDataCollectionCollection.cs
- PageBreakRecord.cs
- XmlSchemaDocumentation.cs
- DetailsViewDeleteEventArgs.cs
- ItemsChangedEventArgs.cs
- OnOperation.cs
- ReferenceEqualityComparer.cs
- ToolStripMenuItem.cs
- WindowManager.cs
- LicenseException.cs
- XsdDateTime.cs
- KeyBinding.cs
- SafeCryptoHandles.cs
- DataGridViewCellLinkedList.cs
- ObjectHelper.cs
- DbMetaDataColumnNames.cs
- ExpandSegment.cs
- SessionStateItemCollection.cs
- ArrayHelper.cs
- DataExpression.cs
- EncoderBestFitFallback.cs
- FindCriteriaApril2005.cs
- DbConnectionPoolIdentity.cs
- Utils.cs
- ReferenceSchema.cs
- Mutex.cs
- QualifiedCellIdBoolean.cs
- FlowDocumentReader.cs
- FlatButtonAppearance.cs
- FlowPanelDesigner.cs
- NTAccount.cs
- HyperLink.cs
- XmlKeywords.cs
- SqlCacheDependencyDatabaseCollection.cs
- RegionInfo.cs
- unsafenativemethodsother.cs
- DmlSqlGenerator.cs
- ExtensibleClassFactory.cs
- PageVisual.cs
- DetailsViewDeleteEventArgs.cs
- URLString.cs
- CubicEase.cs
- MessagePartDescriptionCollection.cs
- ProtocolInformationWriter.cs
- DataSourceHelper.cs
- ObjRef.cs
- ApplicationActivator.cs
- PaintValueEventArgs.cs
- TypeConverter.cs
- DecoderExceptionFallback.cs
- MDIControlStrip.cs
- EmptyQuery.cs
- PointLight.cs
- AppDomainManager.cs
- Stack.cs
- TextCompositionManager.cs
- TempFiles.cs
- ViewKeyConstraint.cs
- AsyncContentLoadedEventArgs.cs
- InputLangChangeEvent.cs
- Evidence.cs
- GridEntry.cs
- OracleBoolean.cs
- BrowserDefinition.cs
- ActionMismatchAddressingException.cs
- DynamicQueryableWrapper.cs
- securitycriticaldata.cs
- NamespaceExpr.cs
- DBCommandBuilder.cs
- OrthographicCamera.cs
- NativeMethodsCLR.cs
- NullExtension.cs