[Visual Basic] Private Sub TreeView_KeyPress( _
ByVal sender As Object, _
ByVal e As KeyPressEventArgs _
) Handles _
TreeView.KeyPress
[Visual Basic] Private Sub TreeView_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TreeView.KeyPress
If (e.KeyChar = ChrW(System.Windows.Forms.Keys.Enter)) OrElse (e.KeyChar = ChrW(System.Windows.Forms.Keys.Escape)) Then
e.Handled = True
FocusOnVisibleChanged = True
Me.DroppedDown = False
End If
End Sub
Plattformen: Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition