Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / WinForms / Managed / System / WinForms / PopupEventArgs.cs / 1 / PopupEventArgs.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System.Diagnostics; using System; using System.ComponentModel; using System.Drawing; using Microsoft.Win32; ////// /// This class contains the information a user needs to paint the ToolTip. /// public class PopupEventArgs : CancelEventArgs { private IWin32Window associatedWindow; private Size size; private Control associatedControl; private bool isBalloon; ////// /// Creates a new PopupEventArgs with the given parameters. /// public PopupEventArgs(IWin32Window associatedWindow, Control associatedControl, bool isBalloon, Size size) { this.associatedWindow = associatedWindow; this.size = size; this.associatedControl = associatedControl; this.isBalloon = isBalloon; } ////// /// The Associated Window for which the tooltip is being painted. /// public IWin32Window AssociatedWindow { get { return associatedWindow; } } ////// /// The control for which the tooltip is being painted. /// public Control AssociatedControl { get { return associatedControl; } } ////// /// Whether the tooltip is Ballooned. /// public bool IsBalloon { get { return isBalloon; } } ////// /// The rectangle outlining the area in which the painting should be done. /// public Size ToolTipSize { get { return size; } set { size = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataGridRowClipboardEventArgs.cs
- WorkflowInstanceSuspendedRecord.cs
- LogLogRecordHeader.cs
- VariableQuery.cs
- PointLight.cs
- CodeAttachEventStatement.cs
- EncoderReplacementFallback.cs
- DataGridLinkButton.cs
- DesignerMetadata.cs
- ReflectTypeDescriptionProvider.cs
- EncryptedData.cs
- IgnoreFileBuildProvider.cs
- VariableAction.cs
- Compiler.cs
- Vars.cs
- QueryStatement.cs
- ArcSegment.cs
- ProfileSettings.cs
- Completion.cs
- Accessors.cs
- ProviderSettings.cs
- SingleKeyFrameCollection.cs
- HttpHeaderCollection.cs
- ParserContext.cs
- GridViewDeletedEventArgs.cs
- Attributes.cs
- DeviceContext2.cs
- HtmlTableRowCollection.cs
- Base64Encoder.cs
- Atom10FormatterFactory.cs
- SmtpFailedRecipientsException.cs
- AddToCollection.cs
- FileNotFoundException.cs
- RowToFieldTransformer.cs
- HtmlMeta.cs
- HtmlTitle.cs
- PenContexts.cs
- CodeBlockBuilder.cs
- Int32Converter.cs
- SymmetricKeyWrap.cs
- ProfileWorkflowElement.cs
- NamespaceMapping.cs
- ObjectPropertyMapping.cs
- WebPartCatalogCloseVerb.cs
- DispatcherObject.cs
- TransactedBatchingElement.cs
- HorizontalAlignConverter.cs
- DataGridViewRowsAddedEventArgs.cs
- MailFileEditor.cs
- ISSmlParser.cs
- WinFormsSpinner.cs
- ProfileSettingsCollection.cs
- SendingRequestEventArgs.cs
- OdbcDataReader.cs
- FontClient.cs
- CompositeFontParser.cs
- ScrollProviderWrapper.cs
- httpapplicationstate.cs
- NativeMethods.cs
- LocalBuilder.cs
- ProvidersHelper.cs
- DiagnosticsConfiguration.cs
- DefaultValueConverter.cs
- SystemNetworkInterface.cs
- WebContext.cs
- XsltSettings.cs
- WhitespaceRule.cs
- WindowHideOrCloseTracker.cs
- RegisteredDisposeScript.cs
- CompositionAdorner.cs
- DataGridColumnEventArgs.cs
- ListViewItemMouseHoverEvent.cs
- SqlStream.cs
- CounterSample.cs
- FixedTextView.cs
- ColorConvertedBitmapExtension.cs
- DecoderExceptionFallback.cs
- DataViewManagerListItemTypeDescriptor.cs
- XmlDocumentSerializer.cs
- ParentQuery.cs
- DataGridViewColumnTypePicker.cs
- FormView.cs
- MultilineStringConverter.cs
- ByteKeyFrameCollection.cs
- CommandManager.cs
- XmlTextEncoder.cs
- AppliedDeviceFiltersEditor.cs
- __Error.cs
- SafeHandles.cs
- baseshape.cs
- ProcessModelSection.cs
- GPStream.cs
- UserInitiatedRoutedEventPermission.cs
- GetWinFXPath.cs
- RegularExpressionValidator.cs
- Converter.cs
- ExpressionNode.cs
- FrameSecurityDescriptor.cs
- Duration.cs
- DataGridViewSelectedRowCollection.cs