登录
首页 » Windows开发 » 具有暂停/继续和进度条的目录复制

具有暂停/继续和进度条的目录复制

于 2022-04-22 发布 文件大小:23.48 kB
0 181
下载积分: 2 下载次数: 1

代码说明:

翻译 maninwest@Codeforge 作者 :MikesRuthlessYa@CodeProject这只是个具有暂停/继续按钮和进度条的目录复制程序。它很有用,因为展示了如何使用 backgroundworker 为 progressbar 增量以及如何制作简单的暂停/继续按钮,不论是使用 file.copy 代码或者类似我使用的代码的代码。我想它不是世界上最好的代码,但是希望它对“初学者‘有用。使用代码 代码很直观。您可以找到要复制的目录和要复制到的目录,然后单击开始按钮。如果需要,可以暂停或者继续。暂停时,无法取消复制。继续复制后,你可以取消。//My Imports Option Explicit On Imports System Imports System.IO Public Class FileCopy //All Of My Variables Dim filetotalsofarcopied As Double = 0 _ """"Variable To Show How Many MB"s/GB"s Have Been Copied Dim int As Integer = 0 """Variable For Which File On The Counter That It Is Currently On Dim filecount As Integer = 0 """"To

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • scientific kalkulator
    单位:dhelpi;
    2023-08-21 07:10:04下载
    积分:1
  • um=5.elmo
    /*The program sets an arrays  of positions and speeds.On the digital input #6 trigger, the program moves forward, waits one second and returns.The destination and speed of the motion are defined according to the values in the speed and position arrays, with an index set by digital inputs #1 through #5.When an error occurs, the program stops and digital output #1 is raised.The motions are executed by functions called by the main program.Errors are detected in the motion functions and returned to the main program.*///Global Variable declarationint Destination[32];int MotionSpeed[32];int MaxDest;int MaxSpeed;//Functions declarationfunction int Err = MoveForward(int MoveIndex); function int Err = MoveBack(int MoveIndex);//Program##PROGRAM1//Local variables declarationint i;float Coeff;//Program bod
    2022-06-16 23:30:26下载
    积分:1
  • 显示汽车的一个很有用的程序
    显示汽车的一个很有用的程序-to show the usefulness of a procedure
    2022-02-05 16:53:29下载
    积分:1
  • [配套资料]Visual Studio 2010(C#)Web数据库项目
    这是曾建华书籍《Visual Studio 2010(C#)Web数据库项目开发》的配套课件和源码,分享给大家。通过一个完整地网上商城系统讲解如何使用Visual Studio 2010 C#开发基于数据库(SQL server)的web应用程序。
    2022-05-08 06:32:26下载
    积分:1
  • 受控扩充件
    Managed Extensions - Parsing CSV Files with Regular Expressions-Managed Extensions- Parsing CSV Files with Regular Expressions
    2022-07-07 16:46:13下载
    积分:1
  • 更改运行程序的鼠标指示的形状,一个非常实用的程序代码....
    更改运行程序的鼠标指示的形状,一个非常实用的程序代码.-Run the program to change the shape of mouse instructions, a very practical program code.
    2022-01-31 05:46:08下载
    积分:1
  • 实现自动机,用于计算理论和编译原理的学习,关于上下文无关文法和正则表达式...
    实现自动机,用于计算理论和编译原理的学习,关于上下文无关文法和正则表达式-automatic machine used in the calculation of compiler theory and principles of learning, on the context-free grammar, and is a regular expression
    2022-04-25 11:03:10下载
    积分:1
  • serial debugging assistant source 51 literacy EEPROM application examples. Zip
    串口调试助手源程序51读写EEPROM应用实例.zip-serial debugging assistant source 51 literacy EEPROM application examples. Zip
    2022-03-02 14:03:27下载
    积分:1
  • 我要上传试试
    我要上传实施我要上传实施我要上传实施我要上传实施我要上传实施我要上传实施我要上传实施我要上传实施我要上传实施我要上传实施我要上传实施我要上传实施
    2022-09-06 01:15:02下载
    积分:1
  • 实现杭电acm一道字符串算法
    zju1174 skip letter code实现杭电acm一道字符串算法
    2022-07-16 03:52:30下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载