Re: Timeout Property (General questions)
Kent,
Looking at your code I see that you read ListNames output in memory stream and then convert it to string.
Why don't you use ListItem Property instead? ListItem Property hold string result from ListNames and ListDir Method.
Can you maybe try something like this without memory stream:[code]...
ftp.ListNames(txtLocation.Text);
string tmpFileName = ftp.ListItem;
MessageBox.Show( File: + tmpFileName);
...[/code]
Let us know how it goes.
Drazen
Complete thread:
- Timeout Property - kdcarlisle, 2009-05-28, 14:42
- Re: Timeout Property - woddrazen, 2009-05-28, 15:03
- Re: Timeout Property - kdcarlisle, 2009-05-28, 15:50
- Re: Timeout Property - wodDamir, 2009-05-28, 16:32
- Re: Timeout Property - kdcarlisle, 2009-05-28, 19:32
- Re: Timeout Property - wodDamir, 2009-05-29, 00:07
- Re: Timeout Property - kdcarlisle, 2009-05-29, 20:26
- Re: Timeout Property - woddrazen, 2009-05-29, 21:35
- Re: Timeout Property - kdcarlisle, 2009-06-27, 20:49
- Re: Timeout Property - wodDamir, 2009-06-27, 20:53
- Re: Timeout Property - kdcarlisle, 2009-06-28, 22:42
- Re: Timeout Property - kdcarlisle, 2009-07-06, 15:44
- Re: Timeout Property - woddrazen, 2009-07-06, 16:08
- Re: Timeout Property - kdcarlisle, 2009-07-06, 21:35
- Re: Timeout Property - wodDamir, 2009-07-06, 21:46
- Re: Timeout Property - kdcarlisle, 2009-07-06, 22:02
- Re: Timeout Property - kdcarlisle, 2009-07-06, 22:06
- Re: Timeout Property - wodDamir, 2009-07-06, 22:38
- Re: Timeout Property - kdcarlisle, 2009-07-07, 16:42
- Re: Timeout Property - woddrazen, 2009-07-07, 18:39
- Re: Timeout Property - kdcarlisle, 2009-07-08, 17:03
- Re: Timeout Property - woddrazen, 2009-07-08, 17:22
- Re: Timeout Property - kdcarlisle, 2009-07-09, 01:44
- Re: Timeout Property - woddrazen, 2009-07-09, 23:24
- Re: Timeout Property - kdcarlisle, 2009-07-12, 18:25
- Re: Timeout Property - woddrazen, 2009-07-09, 23:24
- Re: Timeout Property - kdcarlisle, 2009-07-09, 01:44
- Re: Timeout Property - woddrazen, 2009-07-08, 17:22
- Re: Timeout Property - kdcarlisle, 2009-07-08, 17:03
- Re: Timeout Property - woddrazen, 2009-07-07, 18:39
- Re: Timeout Property - kdcarlisle, 2009-07-07, 16:42
- Re: Timeout Property - wodDamir, 2009-07-06, 22:38
- Re: Timeout Property - kdcarlisle, 2009-07-06, 22:06
- Re: Timeout Property - kdcarlisle, 2009-07-06, 22:02
- Re: Timeout Property - wodDamir, 2009-07-06, 21:46
- Re: Timeout Property - kdcarlisle, 2009-07-06, 21:35
- Re: Timeout Property - woddrazen, 2009-07-06, 16:08
- Re: Timeout Property - kdcarlisle, 2009-07-06, 15:44
- Re: Timeout Property - kdcarlisle, 2009-06-28, 22:42
- Re: Timeout Property - wodDamir, 2009-06-27, 20:53
- Re: Timeout Property - kdcarlisle, 2009-06-27, 20:49
- Re: Timeout Property - woddrazen, 2009-05-29, 21:35
- Re: Timeout Property - kdcarlisle, 2009-05-29, 20:26
- Re: Timeout Property - wodDamir, 2009-05-29, 00:07
- Re: Timeout Property - kdcarlisle, 2009-05-28, 19:32
- Re: Timeout Property - wodDamir, 2009-05-28, 16:32
- Re: Timeout Property - kdcarlisle, 2009-05-28, 15:50
- Re: Timeout Property - woddrazen, 2009-05-28, 15:03