1.关于ProgressBar(或toolprogressbar)的用法:
要使用ProgressBar进度条显示File.Copy(sourcefile,desfile,true)这个命令的进度要怎么做???2.有一文件是经过编码的,大概有5G的内容,我想打开读取显示的是16进制格式的要怎么做?(就好像用Uedi32打开的那样)3.网页:
在服务器端拷文件(不是下载),在客户的浏览器里面怎么显示进度(百分比)?
要使用ProgressBar进度条显示File.Copy(sourcefile,desfile,true)这个命令的进度要怎么做???2.有一文件是经过编码的,大概有5G的内容,我想打开读取显示的是16进制格式的要怎么做?(就好像用Uedi32打开的那样)3.网页:
在服务器端拷文件(不是下载),在客户的浏览器里面怎么显示进度(百分比)?
解决方案 »
- 安装PETSHOP5时,在建立与服务器的连接时出错。
- 点击button的时候弹出子窗体,此子窗体没关闭时再点击button没用
- sql存储过程运行不稳定,求教高人
- 窗体中简单的记录增删改,在c#入门经典中竟然没有涉及!
- 用C#如何下载文件?
- 如何让 超连接的文本动态显示
- 编写一个纸牌游戏,要求可以局域网内对战(一人建个主机,其他人加入,一起准备,然后玩),但是没有类似编程经验,语言是C#或者java。急需。
- datagrid控件和dataset绑定后,不出现数据的问题,请教高手
- 该用using System.IO还是用Import Namespace = "System.Io", 二者是一回事吗?谢谢
- C#调用ANSYS 在线等待!着急解决
- 请英语高手准确翻译一小段英文。谢谢!
- web asp.net 用户在线时间
{
// Display the ProgressBar control.
pBar1.Visible = true;
// Set Minimum to 1 to represent the first file being copied.
pBar1.Minimum = 1;
// Set Maximum to the total number of files to copy.
pBar1.Maximum = filenames.Length;
// Set the initial value of the ProgressBar.
pBar1.Value = 1;
// Set the Step property to a value of 1 to represent each file being copied.
pBar1.Step = 1;
// Loop through all files to copy.
for (int x = 1; x <= filenames.Length; x++)
{
// Copy the file and increment the ProgressBar if successful.
if(CopyFile(filenames[x-1]) == true)
{
// Perform the increment on the ProgressBar.
pBar1.PerformStep();
}
}
}