• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            posts - 124,  comments - 29,  trackbacks - 0
                 摘要:  class ReadExcelToTree    {        public ReadExcelToTree()        {   ...  閱讀全文
            posted @ 2008-09-19 20:25 天書 閱讀(1011) | 評論 (0)編輯 收藏
                 摘要: 有大小寫匹配和向上搜索的功能作為參數傳進去類里面的成員變量有:        private TextBox tb;        private int findCount = 0;      &n...  閱讀全文
            posted @ 2008-09-19 10:35 天書 閱讀(1319) | 評論 (0)編輯 收藏
            設置該窗體的  TopMost 改為true;  ShowInTaskbar改為false
            posted @ 2008-09-17 21:03 天書 閱讀(855) | 評論 (0)編輯 收藏

            class{
              private void pictureBox1_Paint(object sender, PaintEventArgs e)
                    {
                        Graphics g = e.Graphics;
                        SolidBrush brush = new SolidBrush(Color.DarkRed);
                        Pen pen = new Pen(brush);
                        foreach (Point pt in breakPointList)
                     {
                            g.DrawEllipse(new Pen(brush), pt.X-6, pt.Y-6, 12, 12);
                            g.FillEllipse(brush, pt.X - 6, pt.Y - 6, 12, 12);
                     }
                    }


                    List<Point> breakPointList = new List<Point>();

                    private void pictureBox1_MouseClick(object sender, MouseEventArgs e)
                    {
                        breakPointList.Add(new Point(e.X, e.Y));
                        this.pictureBox1.Refresh();  //引發(fā)Paint 函數
                    }
            }

            posted @ 2008-09-16 20:30 天書 閱讀(326) | 評論 (0)編輯 收藏
            字體對話框,包括字體和字體顏色的設置
                        FontDialog fd = new FontDialog();
                        fd.ShowColor = true;
                        fd.Font = txtCmdInput.Font;
                        fd.Color = txtCmdInput.ForeColor;
                        if(fd.ShowDialog()!= DialogResult.Cancel)
                        {
                            txtCmdInput.Font = fd.Font;
                            txtCmdInput.ForeColor = fd.Color;
                        }

            顏色對話框,設置控件背景色
                        ColorDialog cd = new ColorDialog();
                        cd.Color = txtCmdInput.BackColor;
                        if(cd.ShowDialog()!= DialogResult.Cancel)
                        {
                            txtCmdInput.BackColor = cd.Color;
                        }
            posted @ 2008-09-16 15:21 天書 閱讀(668) | 評論 (0)編輯 收藏
            要想哪個textbox 獲得焦點,把它的TabStop屬性設為True 即可。
            我試過 :TabIndex = 0 ; textbox.foucs(); 都沒用啊都獲不得焦點不知道怎么搞的,把我想設焦點的textbox 的屬性TabStop設為True ,出現了想要的結果呵呵!不過目前還不知道為什么呢......
            posted @ 2008-09-14 12:16 天書 閱讀(3098) | 評論 (2)編輯 收藏
                 摘要:   1using System;  2using System.Collections.Generic;  3using System.ComponentModel;  4using System.Data;  5using System.Drawi...  閱讀全文
            posted @ 2008-09-12 16:52 天書 閱讀(2176) | 評論 (1)編輯 收藏

            C#使用關鍵字class來定義類。其基本結構如下:

              class myclass
              {
                //class members
              }

            定義這樣一個類后,就可以在能訪問該定義的工程的其他地方對該類進行實例化。
              默認情況下,類聲明為內部的,即只有當前工程中的代碼才能訪問它。
              可以用internal訪問修飾符關鍵字顯式指定,但這不是必須的,類在定義時默認為此類型的類。
            如果將類指定為公共的,應可以由其他工程中的代碼來訪問。使用關鍵字public。(注:這種方式聲明的類不能是私有的private或受保護的protected。可以把這些聲明類的修飾符用于聲明類成員。
            在C#中有一個規(guī)定:編譯器不允許派生類的可訪問性比其基類更高。也就是說,內部類可以繼承于一個公共類,但公共類不能繼承于一個內部類。
              合法的:內部類繼承公共類
              public class MyBase
              {
                //class members
              }

              internal class MyClass : MyBase
              {
                //class members
              }
              不合法的:公共類繼承內部類(編譯器會說可訪問性不一致)
              internal class MyBase
              {
                //class members
              }

              public class MyClass : MyBase
              {
                //class members
              }
            訪問修飾符的訪問性由高到低一次為:public  ——> internel   ——> protected   ——> private

            posted @ 2008-09-11 20:52 天書 閱讀(850) | 評論 (0)編輯 收藏
            using System.Net;

             String hostInfo = Dns.GetHostName();
             System.Net.IPAddress addr;
             addr = new System.Net.IPAddress(Dns.GetHostByName(Dns.GetHostName()).AddressList[0].Address);
             String IpAddress = addr.ToString();
            posted @ 2008-09-11 13:54 天書 閱讀(954) | 評論 (0)編輯 收藏

            using DevComponents.DotNetBar;
            using DevComponents.DotNetBar.Rendering;

               private void StyleChange(object sender, EventArgs e)
                    {
                        ButtonItem item = sender as ButtonItem;
                        if (item == BUTStyle07Blue)
                        {
                            // This is all that is needed to change the color table for all controls on the form
                            ribbonControl1.Office2007ColorTable = eOffice2007ColorScheme.Blue;
                        }
                        else if (item == BUTStyle07Black)
                        {
                            // This is all that is needed to change the color table for all controls on the form
                            ribbonControl1.Office2007ColorTable = eOffice2007ColorScheme.Black;
                        }
                        else if (item == BUTStyle07Silver)
                        {
                            // This is all that is needed to change the color table for all controls on the form
                            ribbonControl1.Office2007ColorTable = eOffice2007ColorScheme.Silver;
                        }

                        this.Invalidate();
                    }

            posted @ 2008-09-11 10:54 天書 閱讀(1941) | 評論 (0)編輯 收藏
            僅列出標題
            共13頁: First 4 5 6 7 8 9 10 11 12 Last 

            <2025年7月>
            293012345
            6789101112
            13141516171819
            20212223242526
            272829303112
            3456789

            常用鏈接

            留言簿(5)

            隨筆檔案

            文章分類

            文章檔案

            好友的Bolg

            搜索

            •  

            最新評論

            閱讀排行榜

            評論排行榜

            亚洲AV无码1区2区久久| 伊人色综合九久久天天蜜桃| 亚洲午夜无码久久久久小说| 三级三级久久三级久久| 中文字幕亚洲综合久久菠萝蜜| 久久免费99精品国产自在现线 | 久久国产福利免费| 亚洲国产成人久久精品99| 久久精品人人做人人爽电影| 九九久久自然熟的香蕉图片| 日本强好片久久久久久AAA| 91久久精品国产免费直播| 麻豆久久久9性大片| 大伊人青草狠狠久久| 久久精品夜色噜噜亚洲A∨| 亚洲人成精品久久久久| 亚洲午夜久久影院| 91亚洲国产成人久久精品网址| 久久天天躁狠狠躁夜夜av浪潮 | 99久久国产亚洲综合精品| 久久夜色精品国产亚洲| a级毛片无码兔费真人久久| 中文精品99久久国产| 国产激情久久久久影院| 久久青青草原精品国产| 久久受www免费人成_看片中文| 青青草国产成人久久91网| 91精品国产9l久久久久| 久久天天躁狠狠躁夜夜不卡 | 久久久久国产精品嫩草影院| 99久久精品无码一区二区毛片 | 国产免费久久久久久无码| 久久久久av无码免费网| 久久se这里只有精品| 国内精品久久久久影院日本| 久久久久国产精品人妻| 久久久久亚洲爆乳少妇无| 色综合久久久久网| 久久男人中文字幕资源站| 久久人妻少妇嫩草AV无码蜜桃| 国产精品久久久久乳精品爆|