Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Beginning VB 6
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 5th, 2006, 02:45 PM
Friend of Wrox
 
Join Date: Jun 2005
Posts: 244
Thanks: 3
Thanked 4 Times in 4 Posts
Default How to load a file into your own app?

How could i load a file into my app for use by anything, maybe a windows media control or something with out going the file treelist diagram thingy way??

Also how can i preview a html file in ie explorer from my app??

thanks to anyone that can help!
__________________
Apocolypse2005, I'm a programmer - of sorts.
 
Old October 17th, 2006, 03:16 AM
Friend of Wrox
 
Join Date: Oct 2006
Posts: 114
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Use FileSystemObject (add as a reference)

Dim fs as New Scripting.FileSystemObject
Dim iFile as File

For Each iFile in fs.getFolder(strFolderPath).File

   '... do something with files, like add them to a listbox
   List1.AddItem iFile.Name

Next iFile

Regards,

Sean Anderson
 
Old October 25th, 2006, 03:59 PM
Friend of Wrox
 
Join Date: Jun 2005
Posts: 244
Thanks: 3
Thanked 4 Times in 4 Posts
Default

Thanks Sean,
         I'll try that and see what results i get, is there a repositry or memory sector i could put the file in for recall later and i guess this FileSystemObject can be triggered by a button saying load or something like that??

cheers Callum





Similar Threads
Thread Thread Starter Forum Replies Last Post
Could not load file or assembly 'DLL' or one of it Mahenj BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 January 17th, 2007 10:16 AM
How to load settings for my app diegoblin Beginning VB 6 11 November 20th, 2006 06:23 PM
Could not load file or assembly vantoko BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 4 August 27th, 2006 02:26 PM
How do I load a file? Loevet J2EE 2 October 30th, 2003 04:39 PM
Error on local load of downloaded app Gjerstad BOOK: ASP.NET Website Programming Problem-Design-Solution 4 June 21st, 2003 10:36 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.