Contents

The File Wizard is a Visual Basic Custom Control that allows Drag and Drop from the File Manager to your VB Application. It's extremely easy to use. Once a user Drops files on your App from the File Manager, the File Wizard returns the path and filename of every file dropped, so you can do any processing you wish with the filenames.

To learn more about the File Wizard, click on one of the following:

Properties

Events

VB Code Example

How to Register


File Wizard Properties

The File Wizard only has three properties. Each one is described below:

FileCount:

The FileCount property contains the number of files that were dropped from the File Manager. This property is availible only at runtime and is read-only.

FileIndex:

The FileIndex property determines the index of the currenty selected file in the array of file names returned by the File Wizard. (This property is the same as ListIndex for ListBoxes). This propery has a base of zero. FileIndex cannot be > or = to FileCount or a Runtime error occurs. Not availible at design time.

FileName:

Contains the filename of the currently selected file (selected by FileIndex) in the array of returned filenames. This property is read-only at runtime and not availible at design time.


File Wizard Events

The File Wizard has only one event. This event is described below:

FilesDropped:

This event is executed when a user drops files on your app from the File Manager. It is a good idea to retrieve all of the returned filenames in this procedure.


VB Code Example

This is a small example of how the File Wizard works. This example populates a listbox with the filenames returned by the File Wizard.To try this example, paste the code into the Declarations section of a form that contains a File Wizard and a List box. Then press F5 and drag and drop some files from the File Manager onto the form.

Sub FileWizard1_FilesDropped ()

' this event is executed when the

' user drops file(s) from the File Manager

   Dim iCtr as Integer

   For iCtr = 0 To FileWizard1.FileCount - 1

      FileWizard1.FileIndex = iCtr

      List1.AddItem FileWizard1.FileName

   Next iCtr

End Sub

Its that easy!!


How to Register the File Wizard

To Register Send $10.00 to:

Steve Jantzi

10 Homewood Ave.

Tavistock, Ontario

Canada, N0B 2R0

If your in a rush, Call (519) 655-2242.

When you register, you will recieve the latest and greatest version of File Wizard at no extra cost.

If you find any problems with this software please don't  hesitate to inform me.