mike-wigan Posted October 19, 2005 Posted October 19, 2005 this is the code the name is showing ok but the file isnt showing up i am double cliking on a file list in a list box Private Sub FilesList_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles FilesList.DoubleClick Dim _name As New ArrayList Name = InputBox("Please enter the name") Dim AddToBox As String AddToBox = Name & ": " & LstKaraokeQue.SelectedItem LstKaraokeQue.Items.Add(AddToBox) End Sub can anyone help? Quote
Administrators PlausiblyDamp Posted October 19, 2005 Administrators Posted October 19, 2005 Is an item selected in the LstKaraokeQue listbox? If you step through the code what does Name & ": " & LstKaraokeQue.SelectedItem look like in the watch window? Does anything other than the name get displayed ? Should you be adding the LstKaraokeQue.SelectedItem to name as that is where you are putting the result - are you sure you don't mean to use the SelectedItem from FilesList? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.