请问在c#的form(窗体应用程序)中,如何弹出一个提示框?如何弹出一个确认框(确定,取消那个)
谢谢还有一个比较棘手的问题,我想让你个textbox每隔10秒自动填充一部分红色,也就是数10秒的时候10%红色,20秒20%红色100秒全部都是红色,这个能实现吗???

解决方案 »

  1.   

    if(MessageBox.Show("是否本模块?","提示",System.Windows.Forms.MessageBoxButtons.YesNo,System.Windows.Forms.MessageBoxIcon.Question)==System.Windows.Forms.DialogResult.Yes)
    {
       //点击yes时的处理
    }
    else
    {
      //点击no时的处理
    }
      

  2.   

    用msgbox就可以弹出来,你说的确下面哪个不好实现,要不用iamges控件,做好图片进行填充
      

  3.   

    我也没用过试了下以下方法至少应该勉强可用:
    加个ProgressBar和Timer,ProgressBar都默认,Timer的Interval设为10000(即10s)
    在form.Load或按钮等适当地方加上timer1.Start()(必要时再加上progressBar1.Value=progressBar1.Minimum) private void timer1_Tick(object sender, System.EventArgs e)
    {
    if(progressBar1.Value<progressBar1.Maximum)
    {
    progressBar1.PerformStep();
    }
    else
    {
    timer1.Stop();
    }
    }