adding all swf files from dir to player in vb - vb.net

how can i add all swf files from dir to player in vb by just selecting directory....and play it in shockwave flash player in vb.......
i have tested a swf file and it is working fine now how can i achieve the above target

best way i would suggest is,
put all these in a xml or flat file.
in your VB, read the file and play it like a playlist.

Related

How do I randomly pick an icon for a pen drive?

I've seen a tutorial online that explained how to change the icon of a pen drive once inserted using an autorun.inf file and a .ico file, and it worked perfectly, but I wanted to know if there's a way to choose a random file from a list of .ico files inside the pen drive.
Here's the code I'm using for the normal icon
[Autorun]
Icon=IconName.ico
Label=PENDRIVE
If this can't be directly done using the autorun.inf file, please let me know an alternative method, even if it requires other files (such as .vbs files)
Here's the website I used just in case
https://www.windowscentral.com/how-set-custom-icon-removable-drive-windows-10

Export Video from powerpoint using VBA

I want to export a video from powerpoint using VBA. This video was uploaded from the PC and not using links. I saw that this is possible for the images using this line of code:
ActivePresentation.Slides(1).Shapes(1).Export "C:\Cover.PNG", ppShapeFormatPNG
but I couldn't do the same for videos.
Do you simply need to extract the original video from the PPTX file? If so, rename the file to give it a .ZIP extension, open the zip file, browse for the media folder and in it, you'll find copies of any inserted (but not linked) sounds, videos and pictures.
If you have routines for working with ZIP files in VBA, you could probably work out how to do the same thing.
A possible alternative: size the video to fill the slide, then use PPT's SaveAs method to save as a WMV.

Playing movie files without the URL in Visual Basic 2010

Right now in my project I have the windows media player object, and I can get that to play movies on it by inputting the movie URL into the URL property. How do I get it to play a movie that is currently in my resources? Because when I transfer the executable file to my other laptop to test it it doesn't work.
Thanks.
If i remember correctly, when you embed a video file into the application you only embed the data of it, and the extension gets stripped.
So in order to view it, you would need to copy it to a temporary directory and add the extension yourself, then play it from that location.
I haven't found a need to do such a thing since 2005, so visual studio may have made some changes.
Easiest way would be to have the video file you want played stored in the same location as your programs executable and simply refer to it using its name.

MP4 File editing

I have an mp4 video presentation that contains a lot of moving graphics (arrows, buttons etc.) Can I modify/edit these graphics using the MP4 file or do i need the original file used to create the video?
You will need the original source if you want to edit it.

Using Office 2007 extension (i.e. docx) for skin based On-Screen keyboard

I'm creating a On-Screen keyboard for my application, and it supports skins as well.
Here's what I'm doing with the skins, I have a folder which contains some images and a xml file which maps the images to the keyboard, I want to be able to have the folder as a zip file like in Office 2007 (.docx) and iPhone firmwares (.ipsw), I know I can simply zip the folder and change the extension, what I need to know is how to read the files in the code.
You've got two options, either 1) just use a zip library like SharpZipLib or DotNetZip or 2) try to use the System.IO.Packaging namespace. I think option 1 would be the easiest probably.
There's nothing really magical that Office and other programs are doing, they're just reading a zip file and pulling stuff out of it as needed. Instead of pulling an image from a disk you just pull it from a MemoryStream.