zoukankan      html  css  js  c++  java
  • MessageBox



            private void button1_Click(object senderEventArgs e)
            {
                string s = "是否要删除以下文件? ";
                for (int i = 0; i < 10;i++ )
                {
                    s += i.ToString()+". ";
                }
                MessageBox.Show(s"提示"MessageBoxButtons.YesNoMessageBoxIcon.Question);
            }
      


            private void button1_Click(object senderEventArgs e)
            {
                int count = 111;
                string str = "File";
                string s = "是否要删除以下文件? ";
                string s1 = "";
                if (count < 15)
                {
                    for (int i = 0; i <= counti++)
                    {
                        //1.filename
                        s1 += String.Format("{0}.{1} "istr);
                    }
                    s = s1;
                }
                string s2 = "是否要删除以下文件? ";
                if (count > 15)
                {
                    //产生1...10
                    for (int i = 1; i < 11; i++)
                    {
                        s2 += String.Format("{0,3}.{1} "istr);
                    }
                    s2 += " ";
                    s2 += " ... ";
                    s2 += " ";
                    s2 += s1;
                    //最后一个名称
                    //s2 += count.ToString() + "." + str;
                    s2 += String.Format("{0,3}.{1} "countstr);
                    s = s2;
                }
                MessageBox.Show(s"提示"MessageBoxButtons.YesNoMessageBoxIcon.Question);
            }





  • 相关阅读:
    1021 个位数统计
    1020 月饼
    1019 数字黑洞
    1018 锤子剪刀布
    1017 A除以B
    1016 部分A+B
    1015 德才论
    1014 福尔摩斯的约会
    cocos2d 间隔动作
    cocos2d 瞬时动作
  • 原文地址:https://www.cnblogs.com/xe2011/p/3441384.html
Copyright © 2011-2022 走看看