Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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?

  • Administrators
Posted

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?

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

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