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
- CorrelationQueryBehavior.cs
- GcHandle.cs
- NumberFormatter.cs
- DetailsViewInsertedEventArgs.cs
- InvalidateEvent.cs
- EraserBehavior.cs
- Binding.cs
- EntityDataSourceChangedEventArgs.cs
- PagedDataSource.cs
- InternalResources.cs
- SrgsText.cs
- SchemaObjectWriter.cs
- RawKeyboardInputReport.cs
- DispatcherHookEventArgs.cs
- QilGeneratorEnv.cs
- ObjectDataSourceEventArgs.cs
- Run.cs
- PeerTransportSecurityElement.cs
- ObjectConverter.cs
- StylusEditingBehavior.cs
- CodeSnippetStatement.cs
- Request.cs
- ChtmlSelectionListAdapter.cs
- Pens.cs
- PageAsyncTask.cs
- ItemCheckedEvent.cs
- ObfuscationAttribute.cs
- UniformGrid.cs
- MultiView.cs
- Substitution.cs
- UIElementParaClient.cs
- DataListItemCollection.cs
- MultiByteCodec.cs
- ZipPackage.cs
- BitmapFrame.cs
- ImageKeyConverter.cs
- COM2ExtendedTypeConverter.cs
- HttpContextWrapper.cs
- AudioFormatConverter.cs
- shaperfactoryquerycacheentry.cs
- IntSecurity.cs
- TextChange.cs
- ImmutableObjectAttribute.cs
- RtfControlWordInfo.cs
- GenericIdentity.cs
- ApplicationSecurityInfo.cs
- IntellisenseTextBox.cs
- MD5CryptoServiceProvider.cs
- DataTrigger.cs
- SafeEventLogWriteHandle.cs
- XmlnsDefinitionAttribute.cs
- SamlConditions.cs
- WebPartRestoreVerb.cs
- QueryOptionExpression.cs
- ReferentialConstraint.cs
- PersistenceException.cs
- SqlMethodCallConverter.cs
- Geometry3D.cs
- ToolStripItemClickedEventArgs.cs
- RuleElement.cs
- EdmComplexTypeAttribute.cs
- CoTaskMemHandle.cs
- DBAsyncResult.cs
- CodePageUtils.cs
- SortKey.cs
- DiagnosticTrace.cs
- SqlInfoMessageEvent.cs
- PtsHost.cs
- HuffCodec.cs
- CacheVirtualItemsEvent.cs
- SamlAssertionDirectKeyIdentifierClause.cs
- _RequestCacheProtocol.cs
- BinaryObjectReader.cs
- DesignTimeTemplateParser.cs
- RefreshPropertiesAttribute.cs
- LoadWorkflowAsyncResult.cs
- dtdvalidator.cs
- ConfigurationManagerHelper.cs
- SRGSCompiler.cs
- InternalPolicyElement.cs
- ClientScriptManager.cs
- EditorPartCollection.cs
- WebPartEventArgs.cs
- LicFileLicenseProvider.cs
- AQNBuilder.cs
- NavigationExpr.cs
- LinkButton.cs
- DelegateHelpers.Generated.cs
- TypeReference.cs
- ListViewItemMouseHoverEvent.cs
- CalendarDay.cs
- COM2PictureConverter.cs
- ResourcePermissionBaseEntry.cs
- VirtualPath.cs
- PassportAuthentication.cs
- ValueUnavailableException.cs
- StyleXamlTreeBuilder.cs
- TypeConverterAttribute.cs
- QilExpression.cs
- ForeignKeyConstraint.cs