mike-wigan Posted October 18, 2005 Posted October 18, 2005 i know if i do this Private Sub FilesList_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles FilesList.DoubleClick Dim Singer() As String 'InputBox("Singer?" = Singer(0) + 1) LstKaraokeQue.Items.Add("name") it will add the word name to the list box LstKaraokeQue. i dont want it to do that i want it to add the filename i have clicked on and add it to the list the bit what is commented out i want it to ask me for a name first and add it to the front of the file name in LstKaraokeQue can someone help ?? Quote
mskeel Posted October 20, 2005 Posted October 20, 2005 It is a little confusing to determine what you are having a problem with. What is InputBox and what is name supposed to be? Are you getting a null reference error here? There isn't anything in the Singer array when you try and access it. Are you having trouble filling that array? Is it possible to give a little more information? What is FilesList, a listbox? This might be what you are looking for -- get the index of the item selected by seeing what item is selected in FileList and add the text for that item to the LstKaraokeQue. Check out the SelectedItem property for the ListBox Class. Quote
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.