Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Simple VB.net help

$
0
0
Hi Everyone
So I am working on my vb.net project which is a music player.
Now I have created everything. All the forms, Controls and every related stuff.
The problem is that my form has a sort of welcome page and then a Button which opens file dialog and let the user select songs. The Ok button adds these songs to a listbox which sort of acts as a playlist. What I want to do is that if I open a music file directly from my desktop (or any other local storage drive). I want my code to automatically skip the welcome page, add these selected songs to listbox.

Help would really be appreciated.
Code Behind 'loadplay' button (Playlist Loader)

name of second form is player
and name of listbox is playlistfront


         If player.playlistfront.Items.Count = 0 Then
            player.importdiag.ShowDialog()

            player.Show()
            Me.Hide()


        Else : Me.Hide()
            player.Show()

            player.add.Visible = True
        End If
                                      


:D/>

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>