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

            using System.Windows.Forms;
            using DevComponents.DotNetBar;
            using DevComponents.DotNetBar.Rendering;

            public partial class ApplicationForm : Office2007RibbonForm
            {
                     ......
            }

            菜單加載
            仿真制作 DevComponents.DotNetBar.RibbonBarMergeContainer
            ribbonBar2 DevComponents.DotNetBar.RibbonBar

            窗體Form直接加載菜單條

            this.Controls.Add(this.仿真制作);

            posted @ 2009-02-19 09:46 天書 閱讀(2666) | 評論 (1)編輯 收藏
            #include<stdio.h>
            #include"atmi.h"                /*TUXEDO HeaderFile*/
            main(int argc, char *argv[])
            {
                     char *buf;
                     long sendlen,rcvlen;
                     int ret;
                     if(tpinit(TPINIT*)NULL==-1){
                     ......
                     }
                     sendlen = strlen(argv[1]);
                     if(   (buf = (char*)tpalloc("STRING",NULL,sendlen+1)) == NULL   ){
                     ......
                     }
                     (void)strcpy(buf,argv[1]);
                     ret = tpcall("TOUPPER",(char*)buf,0,(char**)&buf,&rcvlen,(long)0);
                     if(ret == -1){
                     ......
                     }
                     (void)fprint(stdout,"Retruned string is:%\n",buf);
                     tpfree(buf);
                     tpterm();
            }

            服務程序的入口參數TPSVCINFO
            服務程序返回結果--- tpreturn()
            posted @ 2009-02-12 10:55 天書 閱讀(416) | 評論 (0)編輯 收藏
            C# code
                        this.comboBox1.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
                        this.comboBox1.AutoCompleteSource = AutoCompleteSource.ListItems;
            posted @ 2009-02-05 10:20 天書 閱讀(3360) | 評論 (0)編輯 收藏
            DateTimePicker 控件的格式設置 CustomFormat屬性設置 : yyyy-MM-dd HH:mm:ss  月大寫M,分鐘小寫m,小時H代表24小時計算,h代表12小時計算yyyy-MM-dd HH:mm:ss
            Format屬性設為Custom
            ShowUpDown屬性設置為true

            posted @ 2008-12-08 15:11 天書 閱讀(20835) | 評論 (1)編輯 收藏

                 using System.Runtime.InteropServices;

            {
                   [DllImport("user32")]
                    public static extern bool GetCaretPos(ref   System.Drawing.Point lpPoint);

                    private void  GetCurRowNo()
                    {
                        try
                        {
                            Point P = new Point(0);
                            GetCaretPos(ref   P);
                            int Pos = txtCmdInput.GetCharIndexFromPosition(P);
                            m_iCurRowNo = txtCmdInput.GetLineFromCharIndex(Pos);

                        }
                        catch
                        {
                            m_iCurRowNo = -1;
                        }
                    }
            }

            posted @ 2008-12-02 11:16 天書 閱讀(805) | 評論 (0)編輯 收藏
                 摘要: 在MonitorWnd.cs類中:事件處理函數://tabControl1是Form窗體中創建的控件,也就是UI線程中創建的控件 //要在事件處理函數中動態的創建TabPage,這個事件處理函數是被另一個read線程調用的  private void MonitorWnd_Load(object sender, EventArgs e)    &...  閱讀全文
            posted @ 2008-11-19 09:25 天書 閱讀(2140) | 評論 (0)編輯 收藏

                            readThread = new Thread(new ThreadStart(Read));
                            readThread.IsBackground = true;
                            readThread.Start()
            posted @ 2008-11-19 09:11 天書 閱讀(1084) | 評論 (0)編輯 收藏
            如果要做在程序里面,用WEBBROWSER,如果要打開IE讓單獨運行,用Process.Start("")你機器上的IE程序即可

            Process 命名空間 :  using System.Diagnostics;
            posted @ 2008-11-14 09:56 天書 閱讀(2543) | 評論 (0)編輯 收藏

                    private void ReadMutualXML()
                    {
                        string strFilePath = Application.StartupPath + "\\" + "MutualConfig.xml";
                        XmlDocument xmlDoc = new XmlDocument();
                        xmlDoc.Load(strFilePath);
                        XmlNode xn = xmlDoc.SelectSingleNode("Mutual");
                        foreach (XmlNode cxn in xn.ChildNodes)
                        {
                            if (cxn.Name.Equals("IP"))
                            {
                                m_proxyIP = cxn.InnerText;
                            }
                            else if (cxn.Name.Equals("Port"))
                            {
                                m_proxyPort = Convert.ToInt32(cxn.InnerText);
                            }
                            else if (cxn.Name.Equals("UserName"))
                            {
                                m_username = cxn.InnerText;
                            }
                            else if (cxn.Name.Equals("Password"))
                            {
                                m_password = cxn.InnerText;
                            }
                        }

                    }

            posted @ 2008-11-12 16:35 天書 閱讀(152) | 評論 (0)編輯 收藏
                 摘要: 調用過程://初始化  始終開著服務器端進程監聽有沒有發消息過來的客戶       private void MutualWnd_Load(object sender, EventArgs e)        {    ...  閱讀全文
            posted @ 2008-11-08 10:53 天書 閱讀(829) | 評論 (0)編輯 收藏
            僅列出標題
            共13頁: 1 2 3 4 5 6 7 8 9 Last 

            <2009年2月>
            25262728293031
            1234567
            891011121314
            15161718192021
            22232425262728
            1234567

            常用鏈接

            留言簿(5)

            隨筆檔案

            文章分類

            文章檔案

            好友的Bolg

            搜索

            •  

            最新評論

            閱讀排行榜

            評論排行榜

            国产美女久久精品香蕉69| 亚州日韩精品专区久久久| 97久久精品午夜一区二区| 久久综合九色综合久99| 亚洲精品国产综合久久一线| 香蕉久久av一区二区三区 | 久久久久香蕉视频| 久久久久久久久久久精品尤物 | 99热成人精品免费久久| 久久免费视频1| 99久久国产综合精品成人影院| 久久久国产视频| 久久99亚洲综合精品首页| 久久亚洲AV成人无码电影| 一级a性色生活片久久无少妇一级婬片免费放 | 国产精品久久久久9999| 国产精品99久久久精品无码| 久久婷婷国产麻豆91天堂| 7777久久久国产精品消防器材 | 精品国产福利久久久| 伊人久久精品无码二区麻豆| 久久精品国产亚洲av瑜伽| 99久久99久久久精品齐齐| 色狠狠久久AV五月综合| 中文字幕久久精品| 色悠久久久久久久综合网| 精品久久久久久久中文字幕 | 国产产无码乱码精品久久鸭| 亚洲国产另类久久久精品黑人 | 久久无码AV中文出轨人妻| 亚洲精品tv久久久久| 久久影院亚洲一区| 久久久久亚洲AV成人网人人软件| 99久久精品无码一区二区毛片| 精品国产乱码久久久久久郑州公司| 亚洲国产精品成人久久| 久久热这里只有精品在线观看| 亚洲日本va午夜中文字幕久久 | 色噜噜狠狠先锋影音久久| 国产成人AV综合久久| 久久se这里只有精品|