在C#的WinForms应用程序中显示Flash内容 [英] Displaying Flash content in a C# WinForms application

查看:160
本文介绍了在C#的WinForms应用程序中显示Flash内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是显示在 C# WinForms应用程序闪存内容的最佳方法是什么?我想创建一个用户控件(类似于当前的图片框),将能够显示图像和Flash内容。

What is the best way to display Flash content in a C# WinForms application? I would like to create a user control (similar to the current PictureBox) that will be able to display images and flash content.

这将是伟大的,是能够从流加载Flash内容不爽,而不是磁盘上的文件。

It would be great to be able to load the flash content from a stream of sorts rather than a file on disk.

推荐答案

虽然我没有用Flash对象Windows窗体应用程序中的自己,我知道,这是可能的。 在你的工具箱Visual Studio中,选择添加新的组件。 然后在出现选择新窗口中的COM组件标签来获取列表中,你可以找到在的Shockwave Flash对象

While I haven't used a flash object inside a windows form application myself, I do know that it's possible. In Visual studio on your toolbox, choose to add a new component. Then in the new window that appears choose the "COM Components" tab to get a list in which you can find the "Shockwave Flash Object"

一旦添加到工具箱中,只需使用控制,你可以使用任何其他标准从Visual Studio控件。

Once added to the toolbox, simply use the control as you would use any other "standard" control from visual studio.

三个简单的命令可用来与控件交互:

three simple commands are available to interact with the control:

  • AxShockwaveFlash1.Stop()
  • AxShockwaveFlash1.Movie =文件路径和放大器; \ FileName.swf
  • AxShockwaveFlash1.Play()
  • AxShockwaveFlash1.Stop()
  • AxShockwaveFlash1.Movie = FilePath & "\FileName.swf"
  • AxShockwaveFlash1.Play()

这,我想,都是自我解释的。

which, I think, are all self explanatory.

这将是伟大的,是能够加载   从流的flash内容   排序,而不是磁盘上的文件。

It would be great to be able to load the flash content from a stream of sorts rather than a file on disk.

我刚才看见你也在寻找一种手段,从流加载的内容, 因为我真的不知道这是可能的冲击波flash对象,我会再给你一次选择(两人竟)。

I just saw you are also looking for a means to load the content from a stream, and because I'm not really sure that is possible with the shockwave flash object I will give you another option (two actually).

首先是一个我会建议你只在必要时才使用,因为它采用了完全成熟的WebBrowser组件(也可作为一个额外的工具箱项),这是喜欢尝试拍摄用火箭筒飞。 当然它会工作,为控制将作为一个真正的浏览器窗口(实际上是Internet Explorer浏览器),但它不是真正的意思的,你需要的方式使用。

the first is the one I would advise you to use only when necessary, as it uses the full blown "webbrowser component" (also available as an extra toolbox item), which is like trying to shoot a fly with a bazooka. of course it will work, as the control will act as a real browser window (actually the internet explorer browser), but its not really meant to be used in the way you need it.

第二个选择是使用的东西我刚发现时寻找有关播放Flash内容的窗口表单中的更多信息。 F-IN-BOX 是一个商业的解决方案,也将从给定网站的网址播放内容。 (提供的链接将引导您到.NET code,你必须使用)。

the second option is to use something I just discovered while looking for more information about playing flash content inside a windows form. F-IN-BOX is a commercial solution that will also play content from a given website URL. (The link provided will direct you to the .NET code you have to use).

这篇关于在C#的WinForms应用程序中显示Flash内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆