|
How to build a GUI FTP client (with no code)
|
|
The FTP GUI Toolkit can be used to build GUI FTP clients. As demonstrated below, this can
be done without writing any code.
Step 1: Create a new Windows Forms Project (either C# or VB)
Step 2: Display the Visual Studio toolbox. The FTP components should be available in an FTP
tab as shown below. If the FTP components are not displayed in the toolbox, you may need to manually register them.
Step 5: Add two buttons from the toolbox's Windows Forms tab, and label them Connect and
Disconnect. Then select the instance of the FTPController. Set its CloseEventSource
to the
name of the Disconnect button, and the ConnectEventSource to the name of the Connect
button, as shown below:
Step 6: Build the project and then run the application. Enter the Server Address, User Name
and Password, and click on the Connect button. You should have a working FTP client, as
shown below. Click on Disconnect to disconnect from the server.
Step 7: Now add two Buttons labeled Load and Save. Then select the instance of the FTPController. Set its LoadEventSource to the name of the Load button, and the SaveEventSource to the name of the Save button, as shown below:
Step 8: Build the project and then run the application. Enter the Server Address, User Name
and Password in the FTPConnectionEditor, and click on the Save button. You will be
prompted with a file save dialog box labeled Save FTP Server Details. This will save the
connection details in a *.ftp file. Then close the application.
Step 9: Run the application again, and click on the Load button. You will be prompted to load
files of type *.ftp. Load the file you saved in the previous step. You should see your previous
connection details loaded in the FTPConnectionEditor, and you can then click on Connect.