1

我在尝试制作的程序时遇到问题。该程序应该从 URL 播放 mp3 文件,但我一直在说“http 是一种类型,不能用作表达式”。在过去的一个小时里,我一直试图弄清楚这一点,但我做不到。我尝试谷歌查看是否可以解决我的问题,但我找不到任何可以解决我的问题的方法。

Imports System.Net.WebRequestMethods
Imports System.Net

Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
AxWindowsMediaPlayer1.URL = http://keygenjukebox.com/?i=ACME_-_UltraEdit_12.xkg.mp3
End Sub
End Class

任何帮助将不胜感激。

4

1 回答 1

4

You have forgotten to wrap the string in quotes:

AxWindowsMediaPlayer1.URL = "http://keygenjukebox.com/?i=ACME_-_UltraEdit_12.xkg.mp3"
于 2013-07-05T23:36:21.077 回答