Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / DataGridViewToolTip.cs / 1305376 / DataGridViewToolTip.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System.Security; using System.Diagnostics; using System.Drawing; using System.Runtime.InteropServices; namespace System.Windows.Forms { public partial class DataGridView { private class DataGridViewToolTip { DataGridView dataGridView = null; ToolTip toolTip = null; private bool toolTipActivated = false; public DataGridViewToolTip(DataGridView dataGridView) { this.dataGridView = dataGridView; } public bool Activated { get { return this.toolTipActivated; } } public ToolTip ToolTip { get { return this.toolTip; } } public void Activate(bool activate) { if (this.dataGridView.DesignMode) { return; } // Create the tool tip handle on demand. if (activate && this.toolTip == null) { this.toolTip = new ToolTip(); this.toolTip.ShowAlways = true; this.toolTip.InitialDelay = 0; this.toolTip.UseFading = false; this.toolTip.UseAnimation = false; this.toolTip.AutoPopDelay = 0; } if (this.dataGridView.IsRestricted) { IntSecurity.AllWindows.Assert(); } try { if (activate) { this.toolTip.Active = true; this.toolTip.Show(this.dataGridView.ToolTipPrivate, this.dataGridView); } else if (this.toolTip != null) { this.toolTip.Hide(this.dataGridView); this.toolTip.Active = false; } } finally { if (this.dataGridView.IsRestricted) { CodeAccessPermission.RevertAssert(); } } this.toolTipActivated = activate; } public void Dispose() { if (this.toolTip != null) { this.toolTip.Dispose(); this.toolTip = null; } } } } } // 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
- FormViewRow.cs
- PasswordRecovery.cs
- ScriptingRoleServiceSection.cs
- ArithmeticException.cs
- CodeGroup.cs
- SessionStateContainer.cs
- ColumnMapProcessor.cs
- ReaderWriterLockWrapper.cs
- Executor.cs
- _IPv6Address.cs
- FileAuthorizationModule.cs
- ContainerParaClient.cs
- MailMessageEventArgs.cs
- DesignParameter.cs
- HtmlTernaryTree.cs
- Point3DCollectionConverter.cs
- RecordConverter.cs
- ProcessRequestArgs.cs
- TabletDeviceInfo.cs
- CompositeDesignerAccessibleObject.cs
- EventTrigger.cs
- MailHeaderInfo.cs
- safex509handles.cs
- InheritanceContextChangedEventManager.cs
- NotificationContext.cs
- SqlComparer.cs
- GlyphRunDrawing.cs
- TextBox.cs
- XDRSchema.cs
- DeferredSelectedIndexReference.cs
- SchemaInfo.cs
- Dynamic.cs
- DeclarativeCatalogPart.cs
- ResourceWriter.cs
- SpellerHighlightLayer.cs
- OleDbRowUpdatingEvent.cs
- RuntimeConfigLKG.cs
- SchemaDeclBase.cs
- DataServiceResponse.cs
- PrintingPermissionAttribute.cs
- StylusPointProperty.cs
- MetaData.cs
- OdbcCommand.cs
- SaveWorkflowCommand.cs
- SqlDataSourceStatusEventArgs.cs
- DataGridViewColumn.cs
- ModuleBuilder.cs
- ImmutableCollection.cs
- SequenceRangeCollection.cs
- XMLUtil.cs
- ModelVisual3D.cs
- HotSpotCollection.cs
- StrokeFIndices.cs
- ClientSettingsSection.cs
- Tracer.cs
- StructuredCompositeActivityDesigner.cs
- ToolStrip.cs
- Separator.cs
- Type.cs
- SqlConnectionPoolProviderInfo.cs
- CacheAxisQuery.cs
- EastAsianLunisolarCalendar.cs
- GZipDecoder.cs
- Rule.cs
- BlurEffect.cs
- figurelength.cs
- Debug.cs
- Point3DCollectionValueSerializer.cs
- XmlNamespaceMappingCollection.cs
- MergeLocalizationDirectives.cs
- IisHelper.cs
- LineVisual.cs
- PowerStatus.cs
- SQLGuid.cs
- AsyncOperationManager.cs
- TextEffectResolver.cs
- RoleService.cs
- HeaderedContentControl.cs
- TypeResolver.cs
- ObjectCloneHelper.cs
- DataGridViewLayoutData.cs
- DbConnectionOptions.cs
- ListControlStringCollectionEditor.cs
- HttpListenerRequest.cs
- SafeRsaProviderHandle.cs
- BrowserDefinitionCollection.cs
- OpenFileDialog.cs
- ComponentCache.cs
- Errors.cs
- RemotingAttributes.cs
- ProtocolsConfiguration.cs
- RadioButtonRenderer.cs
- EntitySqlException.cs
- RequestBringIntoViewEventArgs.cs
- ContentValidator.cs
- ResourceProviderFactory.cs
- UIElement3D.cs
- InputProcessorProfiles.cs
- URLIdentityPermission.cs
- InkCanvasInnerCanvas.cs