Visual Basic
  Home arrow Visual Basic arrow Page 2 - Creating an HTML File List with VB
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
VISUAL BASIC

Creating an HTML File List with VB
By: Tim Haight
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 85
    2004-01-05

    Table of Contents:
  • Creating an HTML File List with VB
  • Setting Up Your Program
  • Coding the Program
  • Opening the Dir.txt File and Creating the HTML File
  • Compiling the File and Wrapping Up

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    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:

    More Visual Basic Articles
    More By Tim Haight


     

    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







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek