2011-10-17 51 views
0

因此,在Windows Form Application中使用我的openFileDialog - 當我點擊一個按鈕時,它可以讓我選擇下面的代碼。C#WFA在列表中打開文件對話框顯示

{ 
     openFileDialog1.InitialDirectory = "Desktop"; 
     openFileDialog1.Title = "Select Mod Folder"; 
     openFileDialog1.FileName = ""; 
     openFileDialog1.ShowDialog(); 
    } 

然後我得到了我的名單,我想選擇的文件顯示出來,並使用該程序可以檢查其個人計劃,他們希望箱的人。

我不完全知道我應該把進入榜單

 // checkedListBox1 
     // 
     this.checkedListBox1.AllowDrop = true; 
     this.checkedListBox1.CheckOnClick = true; 
     this.checkedListBox1.FormattingEnabled = true; 
     this.checkedListBox1.Location = new System.Drawing.Point(12, 40); 
     this.checkedListBox1.Name = "checkedListBox1"; 
     this.checkedListBox1.ScrollAlwaysVisible = true; 
     this.checkedListBox1.Size = new System.Drawing.Size(217, 304); 
     this.checkedListBox1.TabIndex = 8; 
     this.checkedListBox1.SelectedIndexChanged += new System.EventHandler(this.checkedListBox1_SelectedIndexChanged); 
     // 

我使用的Microsoft Visual

+1

你在問......? –

回答