listView1.TopItem = listView1.Items[listView1.Items.Count - 1];
- 8月 04 週四 201110:02
【C#】ListView捲軸自動置底
listView1.TopItem = listView1.Items[listView1.Items.Count - 1];
- 8月 04 週四 201109:49
【C#】FTP簡易寫法
WebClient request = new WebClient();
request.Credentials = new NetworkCredential("log", "log");//FTP帳號、密碼
byte[] fildData = request.DownloadData("ftp://127.0.0.1/log.txt");//檔案下載URL
FileStream file = File.Create("log.txt");//接收端建立檔案
file.Write(fildData, 0, fildData.Length);
file.Close();
- 8月 01 週一 201112:54
【C#】TextBox捲軸自動置底
textbox1.SelectionStart =textbox1.Text.Length
1
