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
- UTF8Encoding.cs
- KeyedQueue.cs
- ContextDataSourceView.cs
- WorkflowApplicationException.cs
- DiscoveryMessageSequenceCD1.cs
- CodeLabeledStatement.cs
- WebPartDescription.cs
- FilterEventArgs.cs
- WebDescriptionAttribute.cs
- BitArray.cs
- OleServicesContext.cs
- ScriptReferenceEventArgs.cs
- CommandBindingCollection.cs
- RoleManagerEventArgs.cs
- AbstractSvcMapFileLoader.cs
- Condition.cs
- UiaCoreApi.cs
- AsymmetricSignatureFormatter.cs
- EditorAttribute.cs
- SystemTcpConnection.cs
- SecurityPolicySection.cs
- HttpValueCollection.cs
- ContractTypeNameCollection.cs
- TextEditorCopyPaste.cs
- Literal.cs
- FaultHandlingFilter.cs
- LinkedList.cs
- ExtensibleClassFactory.cs
- TreeNodeSelectionProcessor.cs
- PersonalizationState.cs
- UnSafeCharBuffer.cs
- DetailsViewPageEventArgs.cs
- DATA_BLOB.cs
- JsonSerializer.cs
- FormatterServices.cs
- StyleModeStack.cs
- StyleSelector.cs
- SqlNamer.cs
- ShaderRenderModeValidation.cs
- KnownColorTable.cs
- DocComment.cs
- Encoder.cs
- BufferedWebEventProvider.cs
- RowParagraph.cs
- CommonObjectSecurity.cs
- PermissionToken.cs
- WebBrowserProgressChangedEventHandler.cs
- AnnotationComponentManager.cs
- SyntaxCheck.cs
- UnmanagedMemoryAccessor.cs
- MimeMapping.cs
- EmptyStringExpandableObjectConverter.cs
- RouteParametersHelper.cs
- ToolStripItemImageRenderEventArgs.cs
- EditingScopeUndoUnit.cs
- OleDbConnectionInternal.cs
- HtmlButton.cs
- _ShellExpression.cs
- ProviderException.cs
- Int32Rect.cs
- XhtmlTextWriter.cs
- PixelFormat.cs
- XmlMemberMapping.cs
- JsonWriterDelegator.cs
- WebControlsSection.cs
- EntryIndex.cs
- RuntimeArgumentHandle.cs
- StringResourceManager.cs
- DesignerAttribute.cs
- HttpServerVarsCollection.cs
- RuleSettingsCollection.cs
- FileLogRecordStream.cs
- updateconfighost.cs
- DesignerTransactionCloseEvent.cs
- TableRow.cs
- AnyReturnReader.cs
- WebSysDisplayNameAttribute.cs
- FileSystemEventArgs.cs
- SRDisplayNameAttribute.cs
- DataPagerCommandEventArgs.cs
- RemoteWebConfigurationHostStream.cs
- MediaTimeline.cs
- QilName.cs
- TextClipboardData.cs
- DropDownHolder.cs
- CodeTypeReference.cs
- MappedMetaModel.cs
- HttpSessionStateBase.cs
- RemotingHelper.cs
- PackageStore.cs
- PhonemeEventArgs.cs
- OpenFileDialog.cs
- PreviewKeyDownEventArgs.cs
- IHttpResponseInternal.cs
- SystemEvents.cs
- AssemblyInfo.cs
- DateTimeFormatInfo.cs
- HttpException.cs
- InternalPermissions.cs
- TreeNodeStyleCollectionEditor.cs