Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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.
//
//-----------------------------------------------------------------------------
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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CfgParser.cs
- XmlSchemaSimpleTypeUnion.cs
- Base64Encoding.cs
- GenericWebPart.cs
- ScrollBarAutomationPeer.cs
- Icon.cs
- ColorTransformHelper.cs
- TabletCollection.cs
- PostBackTrigger.cs
- SafeCertificateStore.cs
- HttpDebugHandler.cs
- XmlSchemaComplexContentRestriction.cs
- ToolStripDesignerAvailabilityAttribute.cs
- DataObjectEventArgs.cs
- TextEffectResolver.cs
- GatewayDefinition.cs
- ControlUtil.cs
- DataGridViewColumnConverter.cs
- PrimitiveXmlSerializers.cs
- ProvidePropertyAttribute.cs
- XmlSerializableReader.cs
- StandardCommandToolStripMenuItem.cs
- CodeDirectoryCompiler.cs
- MexBindingBindingCollectionElement.cs
- HtmlWindow.cs
- EncodingInfo.cs
- Attribute.cs
- safemediahandle.cs
- SizeAnimation.cs
- HotSpot.cs
- SqlDuplicator.cs
- NotSupportedException.cs
- JsonReader.cs
- LinearGradientBrush.cs
- XmlLanguageConverter.cs
- RIPEMD160.cs
- StateManagedCollection.cs
- TypeSystem.cs
- EmbeddedObject.cs
- EventDescriptorCollection.cs
- ShutDownListener.cs
- RequestTimeoutManager.cs
- IdentitySection.cs
- TypedTableHandler.cs
- LineGeometry.cs
- EllipseGeometry.cs
- SystemIPv6InterfaceProperties.cs
- PolicyManager.cs
- RoutedEventHandlerInfo.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- webproxy.cs
- DefaultEventAttribute.cs
- ServiceDebugBehavior.cs
- FlowDocumentPaginator.cs
- XmlSerializerFormatAttribute.cs
- EFDataModelProvider.cs
- DataColumnMapping.cs
- LambdaReference.cs
- ObjectConverter.cs
- FontEmbeddingManager.cs
- RepeaterItemCollection.cs
- ResXFileRef.cs
- Evidence.cs
- MissingMethodException.cs
- CatalogZone.cs
- CasesDictionary.cs
- FormViewDeletedEventArgs.cs
- DictionaryKeyPropertyAttribute.cs
- webeventbuffer.cs
- Queue.cs
- DataControlButton.cs
- RTLAwareMessageBox.cs
- SingleConverter.cs
- LeaseManager.cs
- XPathMultyIterator.cs
- OleDbStruct.cs
- Tile.cs
- RowVisual.cs
- DataBindEngine.cs
- DataGridViewCellStyleChangedEventArgs.cs
- ColorAnimationBase.cs
- QuotedStringWriteStateInfo.cs
- FontFamily.cs
- HtmlHistory.cs
- TransformerTypeCollection.cs
- RemotingConfiguration.cs
- ErrorActivity.cs
- MediaScriptCommandRoutedEventArgs.cs
- ExtractorMetadata.cs
- DiscoveryEndpointElement.cs
- HttpHandlerAction.cs
- SrgsGrammarCompiler.cs
- ToolStripSeparator.cs
- TableDetailsCollection.cs
- TextSpanModifier.cs
- XmlHelper.cs
- Exceptions.cs
- WebCategoryAttribute.cs
- WebDisplayNameAttribute.cs
- MULTI_QI.cs