• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 381
  • Last Modified:

Display Flash .swf in windows form in VB .NET 2005

Hi,

I'm trying to display a Flash .swf file from a remote website in a windows form (this is for the administration of web banners for our website). I've scoured the web and I can find quite a few how-tos but I think they may be for older versions of .NET. I'm using VB .NET 2005 Express Edition. I can set a reference to the ShockwaveFlashObjects COM component, although it doesn't appear in my Toolbox which is what the tutorials say should happen.

All of the tutorials say I should then drag it onto the form to create an instance of it, but I'm unable to do so from the 'Solution Explorer' window where I can see the reference for it.

I'm guessing that I may have to do this in code, but I don't know how to do this.

Any help would be great.

Thanks a lot,
Chris
0
squeakyloboy
Asked:
squeakyloboy
  • 2
  • 2
1 Solution
 
SanclerCommented:
There's another step you need to take.  Go over to the Toolbox and right click on one of the tab headings - e.g. Components.  In the pop-up menu click on Choose Items ...  In the pane that then appears select the Com Components Tab and select the ShockWave Flash Object.  Then OK.  And then it should be there to be dragged onto your form.

Roger
0
 
squeakyloboyAuthor Commented:
Hi Roger, thanks.

Ok, I've done that. I now get an error message saying 'Failed to import the ActiveX control. Please ensure it is properly registered.' - what do I have to do to register it?

Thanks.
0
 
SanclerCommented:
0
 
tolgaongCommented:
In the toolbox, you have an webbrowser component by default
Place it in your application.
Then, just set the URL property of it to the flash file
e.g.:
c:\xxx.swf

You're done ;)
0
 
squeakyloboyAuthor Commented:
Thanks Roger, that works perfectly.

Tolgaong - thanks for the reply too. I hadn't thought about using the webbrowser component.

Thanks guys,
Chris
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now