程式語法高亮顯示,用[code][/code]把程式碼包起來即可

如果要在論壇顯示程式碼,只要用![](upload://jzvbP4Ja2iHcESLVMA3BHg82gLf.png)把程式碼包及來即可。

呈現的效果如下所示:

<div><div>using System;</div><div>using System.Collections.Generic;</div><div>using System.Linq;</div><div>using System.Windows.Forms;</div><div><br></div><div>namespace WindowsFormsApplication1</div><div>{</div><div>&nbsp;&nbsp; &nbsp;static class Program</div><div>&nbsp;&nbsp; &nbsp;{</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;/// &lt;summary&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;/// &lt;/summary&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;[STAThread]</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;static void Main()</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;{</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Application.EnableVisualStyles();</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Application.SetCompatibleTextRenderingDefault(false);</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Application.Run(new Form1());</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp;&nbsp; &nbsp;}</div><div>}</div></div><div><br></div><div>

首推

我知道大家都是LabVIEW專家。


但是,如果有時間的話,順便培養一下第二專長吧…:smiley:

C#, C++, VB都不錯唷…

希望可以跟大家討論visual studio的程式。

我也會不定期把我的心得或是收集到的資源在這邊跟大家分享的。


[code]

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.Win32;
using System.Data;

///<summary>
///用途說明
///</summary>

public partial class Demo_SetupAppList : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
    }
}

[/code]

Dear 班.

Code 內會出現  <P ="ForumMessageText_Large"> 

程式碼是我用複製貼上的是標籤段落格式的問題嗎?

JD40849.6150462963