当我单击按钮时,bt.selected = True有效,但是当我移动鼠标光标时,按钮会取消选择..我该怎么办?
我正在使用Bunifu 1.5.3和Devexpress Framework
Private Sub btnNavi_Dashboard_Click(sender As Object, e As EventArgs) Handles btnNavi_Dashboard.Click, btnNavi_AddStudent.Click, btnNavi_Dept.Click, btnNavi_Sched.Click, btnNavi_StudentInfo.Click, btnNavi_ViewAcct.Click
Dim bt As BunifuFlatButton = DirectCast(sender, BunifuFlatButton)
bt.selected = True
End Sub
答案 0 :(得分:0)
启用IsTab属性为true
Private Sub btnNavi_Dashboard_Click(sender As Object, e As EventArgs) Handles btnNavi_Dashboard.Click, btnNavi_AddStudent.Click, btnNavi_Dept.Click, btnNavi_Sched.Click, btnNavi_StudentInfo.Click, btnNavi_ViewAcct.Click
Dim bt As BunifuFlatButton = DirectCast(sender, BunifuFlatButton)
bt.selected = True
bt.isTab= True
End Sub