• <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

            搜索

            •  

            最新評論

            閱讀排行榜

            評論排行榜

            久久精品国产只有精品66| 久久综合亚洲色一区二区三区| 久久久久久久亚洲Av无码| 精品精品国产自在久久高清| 99久久无码一区人妻| 中文字幕无码免费久久| 国产精品一久久香蕉产线看 | 国产精品美女久久久久网| 亚洲第一永久AV网站久久精品男人的天堂AV | 日日狠狠久久偷偷色综合0| 成人亚洲欧美久久久久| 久久亚洲国产成人影院网站| 久久伊人精品青青草原高清| 国产精品美女久久久免费| 一级做a爱片久久毛片| 94久久国产乱子伦精品免费| 色综合久久久久| 99久久国产主播综合精品| 亚洲综合婷婷久久| 区亚洲欧美一级久久精品亚洲精品成人网久久久久 | 久久久久免费视频| 久久伊人五月丁香狠狠色| 久久婷婷色香五月综合激情| 亚洲精品美女久久777777| 亚洲AV成人无码久久精品老人| 无码专区久久综合久中文字幕 | 精品久久久久久久无码| 国产精品免费福利久久| 精品久久久无码中文字幕| 大香伊人久久精品一区二区| 一本色道久久综合狠狠躁| 精品久久久久久久| 无码任你躁久久久久久久| 日韩AV无码久久一区二区| 国产69精品久久久久99| 亚洲人成电影网站久久| 久久精品国产精品青草app| 久久久久黑人强伦姧人妻| 青青热久久国产久精品 | 久久AAAA片一区二区| 久久成人18免费网站|