社区
C#
帖子详情
toolTip.SetToolTip(this.toolStripStatusLabel2,"I am toolTip");为什么提示错误
LvBao_117
2017-01-09 04:10:34
winForm程序,我的窗体上有个statusStrip控件,里面加了3个toolstripstatusLabel1,toolstripstatusLabel12,toolstripstatusLabel13,我想让鼠标停在toolstripstatusLabel2上时才显示内容
调试时代码下面有红浪线,提示:最匹配的重载方法有些无效参数,大神帮忙,谢谢
...全文
107
2
打赏
收藏
toolTip.SetToolTip(this.toolStripStatusLabel2,"I am toolTip");为什么提示错误
winForm程序,我的窗体上有个statusStrip控件,里面加了3个toolstripstatusLabel1,toolstripstatusLabel12,toolstripstatusLabel13,我想让鼠标停在toolstripstatusLabel2上时才显示内容 调试时代码下面有红浪线,提示:最匹配的重载方法有些无效参数,大神帮忙,谢谢
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
2 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
AMo35
2017-01-09
打赏
举报
回复
toolTip1.SetToolTip(Control control,string caption); 参数类型是继承Control的控件 而ToolStripStatusLabel 非继承自Control。 而且ToolStripStatusLabel本身就带有 ToolTipText 属性了。 statusStrip.ShowItemToolTips = true; toolstripstatusLabel12.ToolTipText = "I am toolTip";
c#
tool
tip
的使用和动态显示
提示
信息
// This example assumes that the Form_Load event handling method // is connected to the Load event of the form. privatevoidForm1_Load(objectsender, System.EventArgs e) { // Create the...
Winform常用代码1
1.
tool
Strip
Status
Label
居右:
Status
Strip
→LayoutStyle→HorizontalStackWithOverflow this.
tool
Strip
Status
Label
1.Alignment =
Tool
Strip
ItemAlignment.Right; 2.实体类: c...
C#Windows简单控件使用源代码2
using System; using System.Drawing; using System.Windows.Forms; public class CForm : Form { private
Label
label
1; private RadioButton radioButton1;... private RadioButton radioButton2;...
Winform自定义窗体样式,实现标题栏可灵活自定义
Tool
Tip
().
Set
Tool
Tip
(ctrl, tip); } public ZForm() { InitializeComponent(); Re
set
TitlePanel(); } private void Titlebutton_Click( object sender, EventArgs e) { Button btn = (Button)...
烟台大学 .net 第六章实验 实验06 Windows应用编程(2)
实验06 Windows应用编程(2) 【实验目的】 掌握控件(Control)的基本属性、事件和方法的使用。 掌握消息框、通用对话框的设计。 掌握容器类控件的使用。 掌握菜单和工具栏的设计。 掌握多重窗体和多文档界面。 【实验...
C#
110,539
社区成员
642,577
社区内容
发帖
与我相关
我的任务
C#
.NET技术 C#
复制链接
扫一扫
分享
社区描述
.NET技术 C#
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧
+ 用AI写文章