我想将光标更改为" Hand"当组合框的下拉打开时。
所以我在comboBox1_DropDownOpened
事件中做了以下事情。但问题是光标变化。但是当我浏览菜单项时,光标仍然是箭头。
请建议我。
private void comboBox1_DropDownOpened(object sender, EventArgs e)
{
this.Cursor = Cursors.Hand;
}
答案 0 :(得分:1)
大。通过将菜单项的光标放在手边,我能够解决我的问题。 :)
ComboBoxItem ci=new ComboBoxItem();
ci.Cursor=Cursors.Hand;
这很好用。谢谢大家。