高分求:弹出模式窗口带进度条的问题
net碰到困难请兄弟们帮忙:A form中有个按钮,点击后弹出模式窗口w_wait,w_wait不能人为被关闭,上面有进度条,在A FORM中怎么样写才能用这样的方法:
open(w_wait)
.....
add(1)//进度条加1
Close(w_wait)
--------------------编程问答-------------------- 不解楼主之意 --------------------编程问答-------------------- 我想做一个通用的等待窗口,调用方便一些,调用采用下面的代码
open(w_wait)
.....
add(1)//进度条加1
Close(w_wait)
这样在net中可行吗? --------------------编程问答-------------------- public partial class frmWaiting : Form
{
private static frmWaiting _FrmWaiting;
private readonly string WaitFormImagePath = System.Configuration.ConfigurationManager.AppSettings["WaitFormImage"];
private frmWaiting()
{
InitializeComponent();
if (!string.IsNullOrEmpty(WaitFormImagePath))
this.PICHead.Image = Tools.GetEmbeddedImage(Application.StartupPath + "\\" + WaitFormImagePath);
}
public static void ShowFmWaiting(string strMsg)
{
if (_FrmWaiting == null)
{
_FrmWaiting = new frmWaiting();
_FrmWaiting.ShowInTaskbar = false;
}
_FrmWaiting.labMsg.Text = strMsg;
_FrmWaiting.TopMost = true;
_FrmWaiting.Show();
_FrmWaiting.Update();
_FrmWaiting.Cursor = Cursors.WaitCursor;
}
public static void HideFmWaiting()
{
if (_FrmWaiting == null) return;
_FrmWaiting.labMsg.Text = "正在执行操作.";
_FrmWaiting.Cursor = Cursors.Default;
_FrmWaiting.Hide();
}
} --------------------编程问答-------------------- http://www.chenjiliang.com/Article/View.aspx?ArticleID=2036&TypeID=98
http://www.z6688.com/info/35367-1.htm
http://www.pconline.com.cn/pcedu/empolder/net/cs/0506/641661.html --------------------编程问答-------------------- Jinwmmail(最后的疯狂): 请问怎么用? --------------------编程问答-------------------- 弹出模式窗口后,程序会等该窗口关闭后才能继续执行,因此这个功能要用到多线程。具体操作请参考lovefootball(蟑螂)的
http://www.chenjiliang.com/Article/View.aspx?ArticleID=2036&TypeID=98 --------------------编程问答-------------------- 顶一下
--------------------编程问答-------------------- 顶一下
--------------------编程问答-------------------- Web 还是WinForm ? --------------------编程问答-------------------- 我现在遇到相同的问题,我做的是web的,c#开发的,关注中! --------------------编程问答-------------------- 友情帮顶! --------------------编程问答-------------------- 可以用一个timer进行控件
补充:.NET技术 , C#