my windows form program can't put the chinese (DBCS) file name list
into listBox1 using ftpConnection1.GetFiles() method;
private void connectButton_Click(object sender, System.EventArgs e)
{
try
{ // Clear the list-box
listBox1.Items.Clear();
// Set server and log-in properties
ftpConnection1.ServerAddress = serverTextBox.Text;
ftpConnection1.ServerPort = int.Parse(portTextBox.Text);
ftpConnection1.UserName = userTextBox.Text;
ftpConnection1.Password = passwordTextBox.Text;
// Connect, get files and close
ftpConnection1.Connect();
ftpConnection1.ChangeWorkingDirectory("/1234567890/fmFSS");
listBox1.Items.AddRange(ftpConnection1.GetFiles());
ftpConnection1.Close();
}
catch (Exception ex)
{
if (ftpConnection1.IsConnected)
ftpConnection1.Close();
MessageBox.Show("Error");
}
}