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
- Main.cs
- InvalidPipelineStoreException.cs
- EntityContainerEntitySet.cs
- TerminateSequence.cs
- TrackingLocation.cs
- ButtonChrome.cs
- Assert.cs
- MachineKey.cs
- SHA512Managed.cs
- ItemCheckEvent.cs
- DecodeHelper.cs
- ProfileManager.cs
- PowerStatus.cs
- ToolStripDropDownButton.cs
- XmlCompatibilityReader.cs
- ErrorWebPart.cs
- GridViewHeaderRowPresenter.cs
- EnumerableWrapperWeakToStrong.cs
- ReferencedType.cs
- ResizeBehavior.cs
- ListViewAutomationPeer.cs
- MD5CryptoServiceProvider.cs
- BCryptSafeHandles.cs
- StringExpressionSet.cs
- RefType.cs
- XmlDigitalSignatureProcessor.cs
- WSSecurityTokenSerializer.cs
- TypeTypeConverter.cs
- RadioButtonList.cs
- EmptyStringExpandableObjectConverter.cs
- BehaviorService.cs
- InternalUserCancelledException.cs
- ApplicationManager.cs
- DataGridItemAttachedStorage.cs
- ChangeTracker.cs
- PenThreadWorker.cs
- BitStack.cs
- ByteAnimation.cs
- SqlConnectionPoolGroupProviderInfo.cs
- HMACSHA1.cs
- MediaElementAutomationPeer.cs
- EventNotify.cs
- ImageMapEventArgs.cs
- Argument.cs
- FlowNode.cs
- DrawingAttributes.cs
- LocatorPart.cs
- GeneralTransform2DTo3D.cs
- PropertyStore.cs
- DescriptionAttribute.cs
- DesignDataSource.cs
- DBDataPermission.cs
- CacheSection.cs
- UIElement.cs
- PrintEvent.cs
- ImageAnimator.cs
- XmlSchemaAll.cs
- FileBasedResourceGroveler.cs
- StickyNote.cs
- UpdatePanelTrigger.cs
- DataObjectCopyingEventArgs.cs
- UIElementPropertyUndoUnit.cs
- DataControlFieldHeaderCell.cs
- LinqDataSourceDisposeEventArgs.cs
- DropTarget.cs
- ResizeGrip.cs
- PieceDirectory.cs
- ASCIIEncoding.cs
- storepermissionattribute.cs
- DataGridPagerStyle.cs
- Hash.cs
- FullTextBreakpoint.cs
- DrawingVisual.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- NameValueSectionHandler.cs
- BaseContextMenu.cs
- AsyncOperationManager.cs
- ConditionalAttribute.cs
- CommittableTransaction.cs
- SapiRecoInterop.cs
- SqlDataSourceView.cs
- StaticExtension.cs
- IItemProperties.cs
- DbDataReader.cs
- NativeActivity.cs
- HierarchicalDataBoundControlAdapter.cs
- Update.cs
- XmlSchemaAttributeGroupRef.cs
- DecoratedNameAttribute.cs
- WebPartUserCapability.cs
- DynamicPropertyHolder.cs
- UIElement.cs
- TableCell.cs
- XamlPathDataSerializer.cs
- StateBag.cs
- WebRequestModuleElementCollection.cs
- CaseCqlBlock.cs
- VisualBrush.cs
- DataObjectPastingEventArgs.cs
- TranslateTransform.cs