Hi all, I'm new to VB and this is my question:
I have a list box where the user select an item from the list box, and the description of the item will be display in a text box.
Different item will display different description in the same text box. How can I do this?
I've been trying by using this code:
VB Code:
Private Sub List1_Click() Select Case List1.ListIndex Case 0: Text1.Text = "A Description" Case 1: Text1.Text = "B Description" Case 2: Text1.Text = "C Description" End Select End Sub
But the description is very long (more than hundreds words), I tried to store it in an access database, but failed because text size too large. Is it possible to save the description in a .txt file and load the description from that .txt file into the text box?
Thanks in advance!




Reply With Quote