目前分類:C# (87)

瀏覽方式: 標題列表 簡短摘要

整理一下lock的特性。
1.lock的目標並不是物件,而是程式碼區段,只有被lock包覆的程式區段才會有作用。

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

C# 取得傳來的byte資料

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

        private void button1_Click(object sender, EventArgs e)
        {

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

跨執行緒呼叫控制項
  在非同步概觀這篇文章提到如果在別的執行緒中直接操作Windows Form上的任何一個控制項,換句話說就是操作控制項的執行緒與建立控制項的執行緒並不是同一個,就會產生InvalidOperationException。這是.Net Framework中針對多執行緒工作所設下的一道安全性機制。

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

DateTime.Now.ToString("HH:mm:ss MM月dd日yyyy年");

HH:24小時制

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

            this.listView1 = new System.Windows.Forms.ListView();
            // 

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

C# 開啟執行檔
開啟執行檔

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


class Calendar1

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

  • Oct 05 Tue 2010 10:57
  • C# try


         try

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

System.Diagnostics.Debugger.Break();

 

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


用1-52數字表示撲克牌的每一張牌

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

C# 委派和事件   


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

同步發表於Google Blogger

c#:

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

VB

pecial character constants (all also accessible from ControlChars class)

createps 發表在 痞客邦 留言(1) 人氣()

更新:2014/01/24

新的下載地址:

createps 發表在 痞客邦 留言(16) 人氣()

// Pass by value (in, default), reference (in/out), and reference (out)
void TestFunc(int x, ref int y, out int z) {

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

class TestStringSplit
{
    static void Main()
    {
        char[] delimiterChars = { ' ', ',', '.', ':', '\t' };

        string text = "one\ttwo three:four,five six seven";
        System.Console.WriteLine("Original text: '{0}'", text);

        string[] words = text.Split(delimiterChars);
        System.Console.WriteLine("{0} words in text:", words.Length);

        foreach (string s in words)
        {
            System.Console.WriteLine(s);
        }
    }
}

 


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

字串格式:

double[] numbers= {1054.32179, -195489100.8377, 1.0437E21, 

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


1.First, add a reference to Microsoft.VisualBasic to your project. You can find the Microsoft.VisualBasic in the list on the .Net tab when you open the Add reference dialog.

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


隨心所欲產生圖案

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