wpf 中scrollviewer 中放置个LISTBOX,当焦点在LISTBOX时候,滚动鼠标不响应Scrollviewer的鼠标滚动
展开全部
Private Sub List1_GotFocus(Index As Integer)
List1(Index).BackColor = &H80000005
End Sub
Private Sub List1_KeyUp(Index As Integer, KeyCode As Integer, Shift As Integer)
If KeyCode = 37 Then
List1(0).SetFocus
ElseIf KeyCode = 39 Then
List1(1).SetFocus
End If
End Sub
Private Sub List1_LostFocus(Index As Integer)
List1(Index).BackColor = &H80000000
End Sub
List1(Index).BackColor = &H80000005
End Sub
Private Sub List1_KeyUp(Index As Integer, KeyCode As Integer, Shift As Integer)
If KeyCode = 37 Then
List1(0).SetFocus
ElseIf KeyCode = 39 Then
List1(1).SetFocus
End If
End Sub
Private Sub List1_LostFocus(Index As Integer)
List1(Index).BackColor = &H80000000
End Sub
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询