日期:2014-05-18 浏览次数:21024 次
using System.Runtime.InteropServices;
[DllImport("User32.dll")]
private static extern int SetWindowLong(IntPtr hWnd, int nIndex, int dwNewLong);
[DllImport("User32.dll")]
private static extern int GetWindowLong(IntPtr hWnd, int nIndex);
public const int GWL_STYLE = -16;
public const int PBS_VERTICAL = 04;
private void button1_Click(object sender, EventArgs e)
{
SetWindowLong(progressBar1.Handle, GWL_STYLE,
GetWindowLong(progressBar1.Handle, GWL_STYLE) | PBS_VERTICAL);
progressBar1.Minimum = 1;
progressBar1.Maximum = 100;
progressBar1.Value = 12;
}
------解决方案--------------------
弄个像SQL 2005的旋转的如何?^_^
程序加载时的旋转进度圈组件
ivanx 著于2007-8-29 9:23:59
以前,大家都采用一个进度条显示程序正在加载。不过,这已经不再流行了。看看SQL Server、Windows Media、Encarta 2006或Firefox/IE7 加载页面时,都是采用一个不断旋转的圈,以显示程序正在载入。本文实现...
多任务状态显示进度条列表(Vista风格,酷)
icscs 著于2007-10-7 7:56:42
本文在.NET2.0中实现了仿Vista下的多任务进度条。非常之酷...