在c#.net中怎么做个显示进度条的界面 在线等 在c#.net中怎么做个显示进度条的界面, 在线等 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 最好有原代码,类似在window中搜索的那个滚动条 <HTML xmlns:v><HEAD><META http-equiv='Content-Type' content='text/html;charset=gb2312'><Meta name='Gemeratpr' content='网络程序员伴侣(Lshdic)2004'><TITLE>效果不错的VML进度条</TITLE><STYLE>v\:*{behavior:url(#default#VML);}*{font-size:12px;color:;}</STYLE></HEAD><BODY topmargin='2' leftmargin='2'><div style='table-Layout:fixed;width:100%;height:100%;border:1 solid black'><v:RoundRect id='a' style='position:absolute;left:300;top:250;height:29;'><v:Textbox inset='5px,5px,5px'><b><font color='red' id='jindu'></font></b></v:textbox><v:fill type='gradient' id='fill1' color='blue'/></v:RoundRect></div><script>//原作:风云舞,载自:http://www.lshdic.com/bbsvar pos1=1,posall=200 //定义全局变量,pos1为当前进度,posall为总进度function play1(){ //播放函数if(pos1<posall)pos1+=1;else{pos1=1;fill1.color="rgb("+Math.round(Math.random()*255)+","+Math.round(Math.random()*255)+","+Math.round(Math.random()*255)+")"}a.style.width=Math.round(300/(posall/pos1));jindu.innerText=pos1+"/"+posall+","+Math.round(100/(posall/pos1))+"%"fill1.angle=Math.round(300/(posall/pos1))}setInterval("play1()",10) //10毫秒播放一次,一般CPU保证能消化~~~</script></BODY></HTML> 看看吧http://community.csdn.net/Expert/topic/4659/4659746.xml?temp=.48901 类似在window中搜索的那个来回滚动的条 window中搜索的那个滚动条XP 下的那个?那个是ms 自己重新画的和我们用的控件根本不是一个东西如果你喜欢最简单的可以做成gif 然后放到一个,图片框里 要不就得自己GDI 画一个 在WINFORM程序中,如果需要使用进度条来显示长时间的操作,那么我一般会:1.把操作放到单独的工作线程中;2.以某种方式传递进度条到工作线程中去(比如,公共静态成员、参数传递等);3.在工作线程中根据操作的进度来设置进度条的值。 参看http://blog.csdn.net/knight94/archive/2006/05/27/757351.aspx 研究了很久还是发现不了问题.哪位大虾能解决的? 熟悉JSON的朋友帮忙看看! 在C# 2.0中,解析JSON的问题 200分找Delphi和C#高手,顶者有分! 各位高手看看int 值的问题 如何将字符串拆分? 关于线程问题 请问如何把dbgrid中某一列链接的下化线不显示,谢谢 这个问题如何解决? 问个数据类型转换算法的问题??? 点样用C# 换行啊???好似VB中的 VbNewLine 线程和进度条的问题---急 如何用Bitmap类将图片保存为256色的BMP图片,而不是24位的BMP图片?
<HEAD>
<META http-equiv='Content-Type' content='text/html;charset=gb2312'>
<Meta name='Gemeratpr' content='网络程序员伴侣(Lshdic)2004'>
<TITLE>效果不错的VML进度条</TITLE>
<STYLE>
v\:*{behavior:url(#default#VML);}
*{font-size:12px;color:;}
</STYLE>
</HEAD>
<BODY topmargin='2' leftmargin='2'>
<div style='table-Layout:fixed;width:100%;height:100%;border:1 solid black'>
<v:RoundRect id='a' style='position:absolute;left:300;top:250;height:29;'>
<v:Textbox inset='5px,5px,5px'><b><font color='red' id='jindu'></font></b></v:textbox>
<v:fill type='gradient' id='fill1' color='blue'/>
</v:RoundRect>
</div>
<script>
//原作:风云舞,载自:http://www.lshdic.com/bbs
var pos1=1,posall=200 //定义全局变量,pos1为当前进度,posall为总进度
function play1(){ //播放函数
if(pos1<posall)pos1+=1;else{pos1=1;fill1.color="rgb("+Math.round(Math.random()*255)+","+Math.round(Math.random()*255)+","+Math.round(Math.random()*255)+")"}
a.style.width=Math.round(300/(posall/pos1));jindu.innerText=pos1+"/"+posall+","+Math.round(100/(posall/pos1))+"%"
fill1.angle=Math.round(300/(posall/pos1))
}
setInterval("play1()",10) //10毫秒播放一次,一般CPU保证能消化~~~
</script>
</BODY>
</HTML>
http://community.csdn.net/Expert/topic/4659/4659746.xml?temp=.48901
XP 下的那个?
那个是ms 自己重新画的和我们用的控件根本不是一个东西如果你喜欢最简单的
可以做成gif 然后放到一个,图片框里 要不就得自己GDI 画一个
1.把操作放到单独的工作线程中;
2.以某种方式传递进度条到工作线程中去(比如,公共静态成员、参数传递等);
3.在工作线程中根据操作的进度来设置进度条的值。
http://blog.csdn.net/knight94/archive/2006/05/27/757351.aspx