在 ToolStripStatusLabel 对象上设置光标类型 [英] Setting the type of cursor on a ToolStripStatusLabel object

查看:37
本文介绍了在 ToolStripStatusLabel 对象上设置光标类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的表单底部有一个 StatusStrip 对象,其中添加了一个 ToolStripStatusLabel 对象.我想更改鼠标悬停时显示的鼠标光标类型.

I have a StatusStrip object at the bottom of my form with a ToolStripStatusLabel object added to it. I want to change the type of mouse cursor that is displayed when one hovers over it.

我怎样才能做到这一点?

How can I achieve this?

推荐答案

ToolStripStatusLabel 对象没有 Cursor 属性.为了更改显示的光标,您必须在运行时设置 StatusStrip.Cursor 属性.

The ToolStripStatusLabel object does not have a Cursor property. In order to change the displayed cursor you must set the StatusStrip.Cursor property at run-time.

使用标签的 MouseEnter 和 MouseLeave 事件来更改 StatusStrip.Cursor 属性.

Use the label's MouseEnter and MouseLeave event to change the StatusStrip.Cursor property.

这篇关于在 ToolStripStatusLabel 对象上设置光标类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆