User Name | ||
Password | ||
Select folder | ||
New folder name | ||
Selected Photo | ||
PictureBox | PictureBox1 | |
TextBox controls (4) | txtFTPServer | |
txtUserName | ||
txtPassword | ||
txtNewFolderName | ||
ToolStripStatusLabel | ToolStripStatusLabel1 | ToolStripStatusLabel1 |
TreeView | TreeView1 |

Figure 16-5
The source code for this project can be downloaded from Wrox's web site at www.wrox.com.
You'll also need to add an ImageList
control (ImageList1
) to Form1
to contain three images representing an opened folder, a closed folder, and an image file. You can specify these images in the control's Image
property (see Figure 16-6).

Figure 16-6
Set the control properties in the following table.
Control | Property | Value |
---|---|---|
TreeView1 | ImageList | ImageList1 |
PictureBox1 | SizeMode | Zoom |
txtPassword | PasswordChar | '*' |
Using Application Settings
When users launch the PhotoViewer
application, they need to supply three pieces of information to access the FTP Server:
□ FTP Server name/IP address
□ Username
□ Password
Because this information is needed every time the user uses the application, it would be helpful to save it
Вы читаете C# 2008 Programmer's Reference