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

Posted on 2006-05-22
Last Modified: 2012-06-21

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,
Question by:squeakyloboy
    LVL 34

    Expert Comment

    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.


    Author Comment

    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?

    LVL 34

    Accepted Solution

    LVL 9

    Expert Comment

    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

    You're done ;)

    Author Comment

    Thanks Roger, that works perfectly.

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

    Thanks guys,

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
    It’s quite interesting for me as I worked with Excel using for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now