i'm totally new with vb.net and wpf and i'm trying to show multiple .swf file in a wpf program that i'm writing with blend.is it possible to use a single webview to show multiple swf files?i mean placing like 5 buttons near that webview and by clicking each button, a specific .swf file appear in the webview?
thanks in advance.
Try this steps
1.Copy te swf file in bin folder.
2.Select "Add/Remove Items".
3.Select "COM Components" Select "Shockwave Flash Object". Click OK.
4.You can see the Shockwave Flash Object in the tool bar.
Code:
AxShockwaveFlash1.Movie = Application.StartupPath & "\flashfile.swf"
AxShockwaveFlash1.Play()
Read more: http://wiki.answers.com/Q/How_add_swf_file_in_vb.net_forms_which_is_save_in_resources#ixzz1toABaXKF
SWF Object Project if you like to see:
https://code.google.com/p/swfobject/
Related
I Open a Folder in C# with following codes. But I want to disable the address bar so that someone does not understand the file's address. And nobody can go to the previous or next folder!
System.Diagnostics.Process.Start("explorer.exe", #"D:\Project WPF\Atlas\Samle\D-File\MyFiles");
Or open the Explorer in the C# Window.
You could try using ExplorerBrowser. This will help embed the explorer window in your application and will give you more control over what you wish to show.
Codeplex has a strange application for downloading and browsing Windows samples, and I have not been able to understand just what it is:
http://1code.codeplex.com/releases/view/64539
When the click-once application above is installed, it creates a single file in the form of a shortcut which contains the following line only:
http://1code.codeplex.com/releases/clickonce/SampleBrowser.application#SampleBrowser.application, Culture=neutral, PublicKeyToken=48e4844f2d49d017, processorArchitecture=msil
Then, when this shortcut is double-clicked, a sort of browser application comes up, but it has no window borders and is very modern looking. What type of technology is this? I am including the WPF tag otherwise I am at my wit's end as to what it is.
(Wanted to include an image of the said application here but can't seem to upload an image as I am getting the following error: "Failed to upload image; imgur is rejecting the request") Here's a link to that image: http://imgur.com/B38P6
Thanks.
The initial part about the odd link is simply a click-once application. The rest of the application is hidden away somewhere in your user directory.
The "browser" is simply a window which has had its chrome modified. Could be pretty much any technology. A couple examples in winForms and wpf.
As a caution, if doing a custom chrome in wpf don't use the AllowTransparency="True" if you want your comboboxes and such to work properly on XP.
I need to create silverlight application where customer will see some pdf files.
PDF files have to be inside silverlight control and not rendered as images (customer wants to select text)
For this purposes i need some free libriaries or code to convert pdf file to xaml (or just open pdf so i can convert it to xaml).
Which library can read pdf and help me to convert data to xaml?
Can I read somehow pdf file and write custom convertation tool?
I saw iTextSharp. Is this library can read pdf and help me with my issue?
I will be thankfull for any ideas or links.
I make use of the Acrobat Reader plugin to do the displaying for me. It does require a different method depending on whether your application is running inside or outside the browser (I check if the application is running inside the browser and change the means of display accordingly). If running inside the browser, I overlay the application with an IFrame, as I describe in this article: http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-6.aspx. Otherwise, I use the WebBrowser control. I have a control which does this all for you in the source code that accompanies my book, which is downloadable from the Apress website here: http://www.apress.com/9781430272076/.
Hope this helps...
Chris
I got a bunch of Pictures and Videos in a directory and needs to be displayed in the WPF application, I am thinking about displaying the Win7 Large Icon itself as the preview image. Because that will save me the work of grabbing an appropriate frame from the video file since Windows is doing that job pretty well already.
Any code snippet to access this Shell Icon image data?
When using the Windows API Code Pack, you can do:
XAML
<Image x:Name="img" />
C#
img.Source = ShellFile.FromFilePath(#"C:\path\to\file.ext").Thumbnail.BitmapSource;
This requires adding the Microsoft-WindowsAPICodePack-Shell package and the appropriate namespaces.
I'm learning Ajax from Sams Teach Yourself Ajax,Javascript and Php All in One
and testing an example which diplays the server time OK but does not show a busy gif image.
In fact all I get is the red cross box where the file should be
Windows Picture and Fax Viewer displays the moving gif file OK so what am I doing wrong?
I have no prior knowledge of using gif files
Right click on the red cross box and select Properties. The subsequent window will show you where IE is looking for the file. In all possibility, the location may not be correct. Must be a problem with the way you are using relative paths.
Properties shows "Type not available" (but file name is "anim.gif")
File location is OK