Home arrow Visual Basic arrow Page 2 - Creating an HTML File List with VB
VISUAL BASIC

Creating an HTML File List with VB


Visual BasicYou just got that shiny new digital camera, and then you downloaded a bunch of digital pictures to your computer. Next you want to create a simple Hypertext Markup Language (HTML) file so that you can burn the picture and HTML files to a CD that you can send to all your friends and family.  How do you do this without having to manually code the HTML file? The following instructions will show you how. 

Author Info:
By: Tim Haight
Rating: 4 stars4 stars4 stars4 stars4 stars / 101
January 05, 2004
TABLE OF CONTENTS:
  1. · Creating an HTML File List with VB
  2. · Setting Up Your Program
  3. · Coding the Program
  4. · Opening the Dir.txt File and Creating the HTML File
  5. · Compiling the File and Wrapping Up

print this article
SEARCH DEVARTICLES

Creating an HTML File List with VB - Setting Up Your Program
(Page 2 of 5 )

  1. Create a directory for your project files. I created one at /My Documents/VisualBasic/HTMLCatalog
  2. If you havenít already done so, start Visual Basic.
  3. When you open the Visual Basic Integrated Development Environment (IDE) a form should appear. It usually defaults to Form1. Save it in your project folder as frmMain.frm by clicking (on the menu bar) File, Save Form1 As, navigate to the drive and folder, and enter frmMain, and click the Save button.

  1. Save your project as HTMLCatalog.vbp by clicking File, Save Project As, and type HTMLCatalog, and click the Save button.

  1. Click once on the form. If the properties are showing, you should see something like this:

  1. In the name properties block, change it to frmMain.
  2. Change the following properties:
    1. Caption to HTML Catalog
    2. Height to 2955
    3. Width to 6255
    4. StartupPosition to 1-Center (so that the form appears at the center of the screen on startup)

The form should look something like this:

  1. On the tool bar (it defaults to the left side of the IDE), click the label tool (It has a capital A on it) and drag it to the form to create a label. In the properties, change the following:
    1. Name to lblLocation
    2. Caption to Location

  1. Next to the label tool is the text box tool. Click it and drag it to the form to create a text box.
  2. Change the properties to:
    1. Name to txtLocation
    2. Width to 3495
    3. Height to 285
    4. Text to the drive and path to the directory you will save your picture files, and the one the application will search and catalog. For this example I entered D:PICTURES
  3. Below the text tool is the Command button. Click this tool and drag it to the form to create a command button. Change the properties to:
    1. Name to cmdCatalog
    2. Caption to Run Catalog

The form should look something like this:


blog comments powered by Disqus
VISUAL BASIC ARTICLES

- Developing an XML Web Service Using Visual S...
- Creating an HTML File List with VB
- Fun with Email: VB6, CDO, MAPI, and a Remote...
- Extranet/Intranet Dictionary Cracker in VB
- Finding Default App Icons With Visual Basic
- Registry Fever With Visual Basic
- Implementing An ADO Data Control With VB6
- Printing With Visual Basic
- MSMQ Part 1/2: Architecture and Simple Imple...
- Magnifying The Desktop With Visual Basic
- Sending Email With MAPI Components in Visual...
- Two Person Chat With The Winsock Control And...
- A Real-Time ActiveX News Control
- Accessing the Windows API in Visual Basic

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials