Inno Setup入門(十九)——Inno Setup類參考(5)

選項按鈕選項按鈕在安裝中也很常見,例如同一個程式可以選擇安裝不同的性質的功能,例如選擇32位或者64位等,兩者是排他性的,因此可以通過選項按鈕(RadioButton)來實現,在同一個容器中放置的選項按鈕是自動帶有排他性的,Pascal指令碼中選項按鈕的定義如下:TRadioButton = class(TButtonControl)  property Alignment: TAlignment; read write;  property Caption: String; read

Inno Setup入門(二十)——Inno Setup類參考(6)

儲存框       儲存框也是典型的視窗可視化組件,同編輯框類似,可以輸入、顯示文本,但是和編輯框不同的是,編輯框只能編輯、顯示單行文本,而儲存框則可以對多行文本進行操作。儲存框的類定義如下:< xmlnamespace prefix ="o" ns ="urn:schemas-microsoft-com:office:office" />TMemo = class(TCustomMemo)  property Lines: TStrings; read

通過鍵盤方向鍵控制TreeView節點的移動

本文轉載:http://dengzebo.blog.163.com/blog/static/18867406201032141932204/View Code      #region "控制樹節點移動,向左右下上"        /// <summary>        /// 通過Ctrl+鍵盤移動選定的樹節點        /// </summary>        /// <param name="TreeView1">要編輯的TreeView控制項&

Inno Setup入門(十二)——Pascal指令碼(1)

事件函數(1)Inno Setup支援以下函數和過程。function InitializeSetup(): Boolean;該函數在安裝程式初始化時調用,返回False 將中斷安裝,True則繼續安裝,測試代碼如下: function InitializeSetup(): Boolean;begin  Result := MsgBox('安裝程式正在初始化,你確定要安裝嗎?', mbConfirmation, MB_YESNO) = idYes;  if Result = False

Inno Setup入門(二十三)——Inno Setup類參考(9)

上班挺累的。今天就簡單說一下ProgressBar。TNewProgressBar = class(TWinControl)  property Min: Longint; read write;  property Max: Longint; read write;  property Position: Longint; read write;  property State: TNewProgressBarState read write;  property Style:

Inno Setup入門(二十一)——Inno Setup類參考(7)

複選框      複選框(CheckBox)用於多個並不互斥的幾個選項中作出一個或者多選擇,例如字型可以有粗體、斜體和底線,這三種狀態可以任意組合,像這樣的選項可以採用複選框實現。Pascal指令碼中對應的類是TcheckBox,其定義如下:< xmlnamespace prefix ="o" ns ="urn:schemas-microsoft-com:office:office" />TCheckBox = class(TCustomCheckBox)  property

給SQL補充一個查看錶結構的預存程序

資料庫中表太多,要查看某個表的結構比較費勁,用此預存程序比較方便; CRM/********************************************* 根據表名得到表資訊,包括欄位說明     ********************************************/   CREATE PROC [dbo].[sp_help_table](@tableName VARCHAR(200), @ColumnLike VARCHAR(200) = NULL)      

用 XML 檔案持久化和恢複圖片資訊

隨便寫寫的一個例子:        // 儲存圖片到 XML 檔案        private void Form1_Load(object sender, System.EventArgs e)        {            Image img = Image.FromFile(@"E:\MyDocs\My Pictures\樣品.jpg");            System.IO.MemoryStream stream = new

PropertyGrid綁定Dictionary

本文摘抄:http://greatverve.cnblogs.com/archive/2012/02/08/propergrid-Dictionary.htmlPropertyGrid直接綁定Dictionary顯示的是資料類型,若要顯示為Text|Value需要處理一下。直接綁定顯示如下:我們希望顯示如下:private void Form6_Load(object sender, EventArgs e){    Dictionary<int, string> dicTest =

編寫自訂控制項之下拉式屬性

編寫了一個自訂控制項,控制項有一個屬性,需要用下拉式屬性來設定值, //*************************************************************************************************//        [TypeConverter(typeof(ControlsConverter))]    //指定一個轉換器,就在下面        [DefaultValue("Normal")]        [Descri

DataGridView 中合併儲存格

Windows Forms DataGridView 沒有提供合併儲存格的功能,要實現合併儲存格的功能就要在CellPainting事件中使用Graphics.DrawLine和 Graphics.DrawString 自己來“畫”。下面的代碼可以對DataGridView第1列內容相同的儲存格進行合并:        private void dataGridView1_CellPainting(object sender, DataGridViewCellPaintingEventArgs 

關於webservice不支援方法重載的解決辦法

 由於用到方法重載,沒想到在web服務中會出現錯誤:System.Data.DataTable Get_SendedEmail(Int32, System.String) 和 System.Data.DataTable Get_SendedEmail(Int32) 同時使用訊息名稱“Get_SendedEmail”。使用 WebMethod 自訂特性的 MessageName 屬性為方法指定唯一的訊息名稱。原來,必須在方法中指定messagename來使用者唯一標識且在類中指示不支援1.1標準[

Inno Setup入門(十六)——Inno Setup類參考(2)

這裡將接著在前面的基礎上介紹如何在自訂頁面上添加按鈕。按鈕屬於Tbutton類,該類繼承自TbuttonControl,類定義如下:TButton = class(TButtonControl)  property Cancel: Boolean; read write;  property Caption: String; read write;  property Default: Boolean; read write;  property Font: TFont; read write;

DataGridView輸出或儲存為Excel檔案(支援超過65536行多Sheet輸出)

/// <summary>        /// DataGridView控制項資料匯出到Excel,可設定每一個Sheet的行數        /// 建立多個工作表來裝載更多的資料        /// </summary>        /// <param name="ExportGrid">DataGridView控制項</param>        /// <param name="fullFileName">儲存的檔案路徑

Inno Setup入門(十七)——Inno Setup類參考(3)

標籤       標籤(Label)是用來顯示文本的主要組件之一,也是視窗應用程式中最常用的組件之一,通過對標籤的使用,將能夠給使用者提供更加詳細的資訊。Pascal指令碼中的標籤由類TlLabel實現,該類定義如下:TLabel = class(TCustomLabel)  property Alignment: TAlignment; read write;  property AutoSize: Boolean; read write;  property Caption: String;

Inno Setup入門(二十二)——Inno Setup類參考(8)

列表框       列表框(ListBox)是Windows應用程式中重要的輸入手段,其中包括多個選項使用者可以從其中選擇一個或者多個,程式根據使用者的選擇做出相應的處理,列表框在外觀上和儲存框類似,但是行為卻有很大的不同,列表框中項一般是預先給定的,而儲存框則可以讓使用者進行輸入,並且列表框中的項被選擇之後也會觸發事件。Pascal指令碼中列表框的類由TlistBox實現,其定義如下:TListBox = class(TCustomListBox)  property BorderStyle:

Inno Setup入門(十八)——Inno Setup類參考(4)

編輯框       編輯框也叫文字框,是典型的視窗可視化組件,既可以用來輸入文本,也可以用來顯示文本,是程式設計中最常用的組件之一,可以擷取使用者輸入的許多資訊。Pascal中的編輯框由類Tedit實現,該類的定義如下:TEdit = class(TCustomEdit)  property AutoSelect: Boolean; read write;  property AutoSize: Boolean; read write;  property BorderStyle:

利用dynamic動態讀出XML

本文轉載:http://www.cnblogs.com/multiplesoftware/archive/2011/12/14/2287061.html 參考文章:http://blogs.captechconsulting.com/blog/kevin-hazzard/fluent-xml-parsing-using-cs-dynamic-type-part-1運用在具體運用中, 有些地方是非常有趣的, 因為我們有了dynamic, 所以你可以用同一個變數去擷取不同結構的XML檔案.

Winform中關於控制項統一賦值和取值的小技巧

下面都是我比較喜歡的部落格園三位牛X人!特此向前輩們致敬!(1)、winform 複選框控制項賦值的小技巧:http://www.cnblogs.com/wuhuacong/archive/2010/02/07/1665438.html(2)、構建 WinForm 通用速選(全選、反選、清空)組件 http://www.cnblogs.com/ldp615/archive/2009/11/29/WinForm_FastSelect_Component.html(3)、c#

總頁數: 61357 1 .... 6723 6724 6725 6726 6727 .... 61357 Go to: 前往

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.