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
This post has been edited by modi123_1: 15 December 2012 - 08:51 PM
Reason for edit:: made the title more descriptive.