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
rar
StoA.rar 预估大小:29个文件
folder
StoA 文件夹
file
StoA.sln 902B
file
StoA.suo 15KB
folder
StoA 文件夹
folder
bin 文件夹
folder
Debug 文件夹
file
StoA.pdb 56KB
file
StoA.vshost.exe.manifest 490B
file
StoA.exe 25KB
file
StoA.xml 112B
file
StoA.vshost.exe 14KB
file
Form1.vb 2KB
folder
obj 文件夹
folder
Debug 文件夹
file
StoA.vbproj.GenerateResource.Cache 905B
file
StoA.Form1.resources 180B
file
StoA.Resources.resources 180B
file
StoA.Form2.resources 180B
file
StoA.pdb 56KB
file
StoA.exe 25KB
folder
TempPE 文件夹
file
StoA.xml 112B
file
StoA.vbproj.FileListAbsolute.txt 561B
file
Form2.resx 6KB
file
Form2.vb 2KB
folder
My Project 文件夹
file
AssemblyInfo.vb 1KB
file
Settings.Designer.vb 3KB
file
Application.myapp 510B
file
Settings.settings 279B
file
Resources.resx 5KB
file
Resources.Designer.vb 3KB
file
Application.Designer.vb 1KB
file
Form1.resx 6KB
file
Form1.Designer.vb 3KB
file
Form2.Designer.vb 3KB
file
StoA.vbproj 5KB
rar 文件大小:65.11KB