Label似乎没有Hint、ToolTip或Hovertext属性。那么,当鼠标靠近Label时,显示提示、工具提示或悬停文本的首选方法是什么?
发布于 2012-03-20 02:54:25
发布于 2012-03-20 02:55:49
yourToolTip = new ToolTip();
//The below are optional, of course,
yourToolTip.ToolTipIcon = ToolTipIcon.Info;
yourToolTip.IsBalloon = true;
yourToolTip.ShowAlways = true;
yourToolTip.SetToolTip(lblYourLabel,"Oooh, you put your mouse over me.");发布于 2012-03-20 02:55:39
System.Windows.Forms.ToolTip ToolTip1 = new System.Windows.Forms.ToolTip();
ToolTip1.SetToolTip( Label1, "Label for Label1");https://stackoverflow.com/questions/9776077
复制相似问题