VB.NET实现发送与接收文件程序
发送端窗体 (Form1)
- 添加控件:Label1 (已发送文件长度)、Label2 (空)、Label3 (字节数)、Button1 (发送文件)、OpenFileDialog1 (文件选择器)
- 设置控件属性:
- Button1.Text = 发送文件
- Label1.Text = 已发送的文件长度
接收端窗体 (Form2)
- 添加控件:Label1 (已接收的文件)、Label2 (空)、TextBox1 (多行文本框)、Button1 (接收文件并保存)、OpenFileDialog1 (文件选择器)、SaveFileDialog1 (文件保存器)
- 设置控件属性:
- Button1.Text = 接收文件并保存
- Label1.Text = 已接收的文件
- TextBox1.Multiline = True
- TextBox1.ScrollBars = Both
StoA.rar
预估大小:29个文件
StoA
文件夹
StoA.sln
902B
StoA.suo
15KB
StoA
文件夹
bin
文件夹
Debug
文件夹
StoA.pdb
56KB
StoA.vshost.exe.manifest
490B
StoA.exe
25KB
StoA.xml
112B
65.11KB
文件大小:
评论区