貼code測試
雖然好像還是有點怪怪就將就吧0.0

using System;
using System.Windows.Forms;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace WindowsPratice_1
{
    class Class1
    {
        public static void Main()
        {
            
            DialogResult dr = MessageBox.Show("Hello World!","Caption: Hello World!",MessageBoxButtons.AbortRetryIgnore,
                MessageBoxIcon.Warning,MessageBoxDefaultButton.Button2,MessageBoxOptions.ServiceNotification);

            switch (dr)
            { 
                case DialogResult.Abort:
                    MessageBox.Show("Abort");
                    break;
                case DialogResult.Retry:
                    MessageBox.Show("Retry");
                    break;
                case DialogResult.Ignore:
                    MessageBox.Show("Igore");
                    break;
            }            
         
        }
    }
}

頁尾描述:

 





參考:

 

如何在痞客邦插入程式碼,使用SyntaxHighlighter

在痞客邦使用 SyntaxHighlighter 為程式碼上色

arrow
arrow
    文章標籤
    test
    全站熱搜

    Master Sarge 發表在 痞客邦 留言(0) 人氣()