• 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);
            }





  • 相关阅读:
    MP教程-入门
    [15213] Assembly
    Crack the code interview
    [interview questions] 资料总结
    [Two Sigma OA] Longest Chain
    [Tow Sigma OA] friend cycles
    [security]
    [security] GNUpg
    [coursera] 面试前准备
    [coursera] [design] Hangman
  • 原文地址:https://www.cnblogs.com/xe2011/p/3441384.html
Copyright © 2020-2023  润新知