単純に、プログラムの mp3 ファイルを取得するのを難しくしたいだけです。アクセスが難しくなる 1 つのディレクトリにそれらを含めることはできますか? 大きな .exe ファイルを避けるためにプログラムに添付したくないのは、いくつかの外部ファイル /songs.(extension?) です。
可能であれば教えてください->このファイルを1つのディレクトリ(拡張子)に圧縮する方法と、後でvb経由でこのファイルを取得してvb経由で再生する方法
プレーヤーにファイルを取得する方法。
AxWindowsMediaPlayer1.URL = mediaList(ListBox1.SelectedIndex)
mediaList は何をしますか。
Dim mediaList As New List(Of String)
Private Sub Button1_Click(sender As Object, e As EventArgs)
OpenFileDialog1.Multiselect = True
OpenFileDialog1.ShowDialog()
For Each s As String In OpenFileDialog1.FileNames
mediaList.Add(s)
ListBox1.Items.Add(System.IO.Path.GetFileNameWithoutExtension(s))
Next
Me.ListBox1.SelectedIndex = Me.ListBox1.SelectedIndex + 1
End Sub
ヒントを教えてください