By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,800 Members | 1,300 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,800 IT Pros & Developers. It's quick & easy.

VB6 to VB .net command

swatmajor1
P: 40
hi there,

I wish to re-write a music player from VB6 to VB .net, but 1 piece of code doesn't want to work.

In the VB6 version, when a person opens a file, lets say an MP3, the following code is used
Expand|Select|Wrap|Line Numbers
  1. file = Command()
  2. file = Replace(file, """", "")        
  3. Player.URL = file
The code"file = command" is used to extract the full path and filename of the MP3. This doesn't work in VB .net, coming up with "'System.Windows.Forms.Command' is not accessible in this context because it is 'Private'."

If anyone can help me with this, it would be greatly appreciated.

Signing off,

Swatmajor1
Mar 20 '07 #1
Share this Question
Share on Google+
1 Reply


swatmajor1
P: 40
Forget about replying to this post.

Just as a guide, command as been replaced by Microsoft.VisualBasic.Command

Signing off,

Swatmajor1
Mar 20 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.