RSS Forums RSS
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums

Adding pictures

Join Date: Jul 2005
Posts: 31
Reputation: AlanC is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 1
AlanC's Avatar
AlanC AlanC is offline Offline
Light Poster

Re: Adding pictures

  #9  
Sep 15th, 2005
Right. Sounds like you're using the 'wrong' mediaplayer. That explains the previous error you got as well! That's why I went on about msdxm.ocx; if you followed what I said in the very first reply you should be able to find this file (From Project menu -> components, click the browse button and look in either Windows/System or Windows/System32 for the file msdxm.ocx or msdxmp.ocx. When you've found it click 'open'. You may have two 'Windows Media Player' entries in the components list now. You need to select the one that, when highlighted, gives a line similar to:
c:\windows\system\msdxm.ocx
in the frame below the components list. When you check it and click Apply, it should look like a little film clapperboard in the object panel on the left of your screen. When you add it to your form, it's default name will be 'MediaPlayer1' This has loads more properties than the WMP.DLL one, which calls itself WindowsMediaPlayer1.

What version of VB are you using?

By the Editor I meant the VB IDE- the project design screen; if you don't have a window called 'immediate' then click View on the menu and then Immediate and it should appear. You can use this to test VB commands, and also get your program to print diagnostic info to it using statements like 'debug.print <variable>'.

Let me know how you get on.

Cheers
Alan
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 5:00 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC