如题

解决方案 »

  1.   

    class MyForm : Form //定义自己的显示窗体
    {
      ......
    }...
    //显示窗体
    MyForm myForm1 = new MyForm();
    MyForm.Show();
    //关闭当前窗体
    this.Close();
      

  2.   

    是什么??是winform  还是asp.net
    说清楚
      

  3.   

    FrmOpenList frmopenlist = new FrmOpenList ();
    frmopenlist.TempOperation ="修改";
    frmopenlist.BoxName = strTemp;
    this.OperationList="";//还原结帐判断变量
    frmopenlist.ShowDialog (this);
    if (frmopenlist.DialogResult != DialogResult.OK)
    {
    return;
    }
    refbuton(sender);//刷新按钮信息
    if (this.OperationList.Trim()=="结帐")
    {
    //跳出结帐窗体
    FrmCloseList frmCloselist = new FrmCloseList ();
    frmCloselist.TempOperation ="结帐";
    frmCloselist.BoxName = strTemp;
    frmCloselist.ShowDialog (this);
    if (frmCloselist.DialogResult == DialogResult.OK)
    {
    //还原按钮颜色
    (sender as Button).BackColor = Color.Empty;
    (sender as Button).ForeColor = Color.Black;
    (sender as Button).FlatStyle = FlatStyle.Standard;
    this.refbuton(sender);
    (sender as Button).Text = strTemp + "空闲";
    }
    }
    //如果结帐窗体返回OK 则还原按钮 否则不变