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
- _Win32.cs
- HttpConfigurationContext.cs
- IntPtr.cs
- COM2IDispatchConverter.cs
- DetailsViewInsertEventArgs.cs
- CaseInsensitiveComparer.cs
- IdentityHolder.cs
- ZipArchive.cs
- SecurityState.cs
- PeerNameRecordCollection.cs
- QueryAccessibilityHelpEvent.cs
- TransferMode.cs
- UserControlBuildProvider.cs
- DLinqTableProvider.cs
- PermissionRequestEvidence.cs
- PropertyTabChangedEvent.cs
- SafeFileMappingHandle.cs
- HtmlInputPassword.cs
- SequentialOutput.cs
- HttpContext.cs
- HtmlToClrEventProxy.cs
- hresults.cs
- DbInsertCommandTree.cs
- ReflectionHelper.cs
- BamlMapTable.cs
- BezierSegment.cs
- EntityClassGenerator.cs
- basevalidator.cs
- BitmapEffectGeneralTransform.cs
- SHA384Cng.cs
- FontCollection.cs
- DataStreams.cs
- UpdateCompiler.cs
- WebBrowserBase.cs
- RectangleHotSpot.cs
- RSAProtectedConfigurationProvider.cs
- ZipIOModeEnforcingStream.cs
- KeyConstraint.cs
- BackgroundFormatInfo.cs
- InputLanguage.cs
- Image.cs
- HttpModulesSection.cs
- TableLayout.cs
- WebZone.cs
- ToolStripPanelCell.cs
- CreateDataSourceDialog.cs
- SystemDiagnosticsSection.cs
- PermissionSetEnumerator.cs
- UnsafeNativeMethods.cs
- IPEndPointCollection.cs
- WriterOutput.cs
- Application.cs
- DbInsertCommandTree.cs
- LocalsItemDescription.cs
- BaseCollection.cs
- RowToParametersTransformer.cs
- MembershipUser.cs
- WorkflowQueuingService.cs
- TextEncodedRawTextWriter.cs
- WindowsGraphicsCacheManager.cs
- HtmlElementErrorEventArgs.cs
- WebProxyScriptElement.cs
- ScrollPatternIdentifiers.cs
- HttpConfigurationContext.cs
- SoapExtensionStream.cs
- NativeMethods.cs
- PageThemeParser.cs
- XmlObjectSerializerWriteContext.cs
- TemplatePagerField.cs
- ApplicationFileCodeDomTreeGenerator.cs
- ContextQuery.cs
- DropShadowBitmapEffect.cs
- SyntaxCheck.cs
- DataPagerCommandEventArgs.cs
- InstanceData.cs
- Wildcard.cs
- PasswordDeriveBytes.cs
- XomlCompilerResults.cs
- PerformanceCounterPermission.cs
- CursorEditor.cs
- UiaCoreProviderApi.cs
- CodeStatementCollection.cs
- NameValuePermission.cs
- LinqDataSourceView.cs
- SizeKeyFrameCollection.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- ExceptionUtil.cs
- AlternationConverter.cs
- DBDataPermission.cs
- ISO2022Encoding.cs
- DbModificationClause.cs
- WindowsRegion.cs
- MetadataArtifactLoader.cs
- AspNetHostingPermission.cs
- AspNetCacheProfileAttribute.cs
- RecordBuilder.cs
- StorageRoot.cs
- BuildProvider.cs
- SmiContextFactory.cs
- WebServiceAttribute.cs