怎么根据imagebutton的enabled设置鼠标的形状
当imagebutton的enabled为true时,鼠标放到上面显示的是手形,当enabled为false时,想将鼠标形状改为正常的形状,怎么做到这一点?if(imagebutton1.Enabled == false)
imagebutton1.Style.Add("Cursor","default");
else if(imagebutton1.Enabled == true)
imagebutton1.Style.Add("Cursor","hand");
imagebutton1.Style.Add("Cursor","default");
else if(imagebutton1.Enabled == true)
imagebutton1.Style.Add("Cursor","hand");
[此贴子已经被作者于2006-11-25 16:23:54编辑过]