Typical File open, file save, etc in VB


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Typical File open, file save, etc in VB

  1. #1
    Join Date
    Dec 2005
    Posts
    5

    Typical File open, file save, etc in VB

    I am just getting into VB and I am used to programming in C++.

    Visual C has a class called CFileOpen for handling the selection of a file on the hard drive for opening and reading and closing.

    Do I have to do all that from scratch in VB? Do I have create my own form that mirrors the one you see when a user wants to open a file?

  2. #2
    Join Date
    Nov 2003
    Location
    Alameda, CA
    Posts
    1,737
    Press Ctrl+T to open the Components dialog. In the list, select

    Microsoft Common Dialog 6.0 (SP3)

    or whatever service pack you have. Drop the control in your form and use the ShowOpen or ShowSave methods to display the standard file dialog

    Marco
    "There are two ways to write error-free programs. Only the third one works."
    Unknown

Similar Threads

  1. Save Image to Field
    By Chicho in forum VB Classic
    Replies: 11
    Last Post: 10-01-2003, 01:00 AM
  2. Open a file in Altris EB from MS Excel in VB
    By Joel in forum VB Classic
    Replies: 0
    Last Post: 12-05-2002, 09:27 PM
  3. Replies: 1
    Last Post: 06-20-2002, 12:33 PM
  4. Replies: 3
    Last Post: 08-04-2000, 07:07 AM
  5. An Open Source VB?
    By Mark Alexander Bertenshaw in forum Talk to the Editors
    Replies: 20
    Last Post: 07-25-2000, 01:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center