|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Keydown Listview
i have a code:
Private Sub ListView1_KeyDown(KeyCode As Integer, Shift As Integer) Text1.Text = ListView1.SelectedItem End Sub but when i press down arrow key, data is not transferred correctly. for example. content of row 1 is "abc" content of row 2 is "def" content of row 3 is "ghi" when i press down arrow key, content of text1 is "abc" but it should be "def" when i press down arrow key again, content of text1 is "def" but it should be "ghi" transfer of data is late. do i need to add another code to solve the problem? your reply is greatly appreciated |
|
#2
|
|||
|
|||
|
Maybe it's an issue with how VB apps repaint the screen.
You could try adding a DoEvents statement after you set text1.text Just a wild guess though.
__________________
====== Doug G ====== I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain |
|
#3
|
|||
|
|||
|
You pressed the arrow key therefore selected item has move to the next item. try to press another key except the arrow.
|
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Keydown Listview |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|