Code:
/ FX-1434 / FX-1434 / 1.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
- EmbeddedMailObjectsCollection.cs
- ValidationEventArgs.cs
- DataColumnPropertyDescriptor.cs
- CompositionAdorner.cs
- WorkflowInstanceExtensionProvider.cs
- DataColumnCollection.cs
- XmlValidatingReader.cs
- PopupRoot.cs
- WebPartConnectionsConfigureVerb.cs
- ReadOnlyHierarchicalDataSource.cs
- HtmlInputSubmit.cs
- GroupStyle.cs
- clipboard.cs
- RichTextBoxConstants.cs
- Rect3D.cs
- CryptoSession.cs
- MetadataPropertyAttribute.cs
- BaseTreeIterator.cs
- CompensationExtension.cs
- PropertyGridEditorPart.cs
- DataGridPagingPage.cs
- DesignRelation.cs
- RunClient.cs
- Terminate.cs
- MsmqNonTransactedPoisonHandler.cs
- HtmlUtf8RawTextWriter.cs
- CacheAxisQuery.cs
- LinqToSqlWrapper.cs
- AnimationClock.cs
- ParsedAttributeCollection.cs
- ControlBindingsConverter.cs
- SqlDataReaderSmi.cs
- RoutedEvent.cs
- Sql8ConformanceChecker.cs
- ValueUtilsSmi.cs
- streamingZipPartStream.cs
- ChildChangedEventArgs.cs
- DbgUtil.cs
- StopStoryboard.cs
- Util.cs
- ColorMap.cs
- DbSetClause.cs
- IisTraceWebEventProvider.cs
- SetterBaseCollection.cs
- Decimal.cs
- NavigationEventArgs.cs
- sqlmetadatafactory.cs
- Vector3DAnimationUsingKeyFrames.cs
- CodeLabeledStatement.cs
- OdbcParameter.cs
- NamedPipeDuplicateContext.cs
- StringFreezingAttribute.cs
- SmtpException.cs
- GroupItemAutomationPeer.cs
- CalculatedColumn.cs
- UnauthorizedWebPart.cs
- SeparatorAutomationPeer.cs
- GeometryHitTestResult.cs
- StreamGeometryContext.cs
- CategoryAttribute.cs
- CodeExporter.cs
- WindowsEditBoxRange.cs
- DrawingCollection.cs
- InfoCardRequestException.cs
- ActivityMarkupSerializationProvider.cs
- SizeAnimationUsingKeyFrames.cs
- DocumentSequenceHighlightLayer.cs
- PerfCounters.cs
- PeerNameRegistration.cs
- ZipIOCentralDirectoryFileHeader.cs
- WebControlsSection.cs
- XmlSerializer.cs
- InvalidDataException.cs
- XamlTreeBuilderBamlRecordWriter.cs
- OleAutBinder.cs
- EventMappingSettingsCollection.cs
- TableCellAutomationPeer.cs
- DictionaryBase.cs
- StreamWriter.cs
- ObjectContext.cs
- WindowsPrincipal.cs
- AppSettingsSection.cs
- RegisteredExpandoAttribute.cs
- CSharpCodeProvider.cs
- XmlSchemaSimpleTypeUnion.cs
- SchemaElement.cs
- XpsSerializationManagerAsync.cs
- MissingMethodException.cs
- ConfigurationManagerHelper.cs
- SSmlParser.cs
- SamlAssertion.cs
- DBConnectionString.cs
- ToolTip.cs
- LayoutSettings.cs
- ResourceWriter.cs
- IOException.cs
- TemplateBaseAction.cs
- KeyMatchBuilder.cs
- recordstatescratchpad.cs
- ManagedFilter.cs