|
-
Sep 27th, 2000, 01:23 AM
#1
Thread Starter
Addicted Member
How can I let show the record from a listbox in a textbox when I go tru the listbox with the up and down arrow keys ?
-
Sep 27th, 2000, 01:48 AM
#2
Addicted Member
Hi there, you just put the selected value of the listbox on the textfield in the click event of the listbox:
Code:
Private Sub List1_Click()
Text1.Text = List1.Text
End Sub
Have a nice day
André
-
Sep 27th, 2000, 01:56 AM
#3
Lively Member
to allow the arrow keys to also change the text box
Private Sub List1_KeyUp(KeyCode As Integer, Shift As Integer)
Text1.Text = List1.Text
End Sub
' will change the contents of the text box when you let
' go of up or down arrow
-
Sep 27th, 2000, 02:08 AM
#4
Addicted Member
I agree, but with the click event your user can both use the arrows and the mouse from the same event!
André
-
Sep 27th, 2000, 03:09 AM
#5
Thread Starter
Addicted Member
thanks to you all !
Both works fine
regards, Kars
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|