Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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 ??

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...