ToolTip.Hide(IWin32Window) ToolTip.Hide(IWin32Window) ToolTip.Hide(IWin32Window) ToolTip.Hide(IWin32Window) Method

定义

隐藏指定的工具提示窗口。Hides the specified ToolTip window.

public:
 void Hide(System::Windows::Forms::IWin32Window ^ win);
public void Hide (System.Windows.Forms.IWin32Window win);
member this.Hide : System.Windows.Forms.IWin32Window -> unit
Public Sub Hide (win As IWin32Window)

参数

win
IWin32Window IWin32Window IWin32Window IWin32Window

与工具提示相关联的关联窗口或控件的 IWin32WindowThe IWin32Window of the associated window or control that the ToolTip is associated with.

异常

注解

如果Hide当前正在显示指定的, 则Control该方法将隐藏指定的工具提示。The Hide method hides the ToolTip for the specified Control if it is currently being displayed. 它不会禁用或阻止在将来显示相同的工具提示。It does not disable or otherwise prevent the same ToolTip from being displayed in the future. 若要改为禁用与当前ToolTipTitle组件关联的所有工具提示窗口, 请false Active将属性设置为。To instead disable all ToolTip windows associated with the current ToolTipTitle component, set the Active property to false.

在部分信任环境中运行的应用AllWindows程序必须断言使用此方法的Hide权限, 因为可以隐藏与用户操作无关的提示。Applications running in partial trust must assert the AllWindows permission to use this method, as Hide can hide the tip independent of user action.

安全性

UIPermission
需要AllWindows权限。Requires AllWindows permission.

适用于

另请参阅