Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/257.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C#WFA在列表上显示“打开文件”对话框_C#_File_Checkbox - Fatal编程技术网

C#WFA在列表上显示“打开文件”对话框

C#WFA在列表上显示“打开文件”对话框,c#,file,checkbox,C#,File,Checkbox,因此,使用我的openFileDialog和Windows窗体应用程序-我有它,所以当我单击一个按钮时,它允许我选择一个文件,它是下面的代码 { openFileDialog1.InitialDirectory = "Desktop"; openFileDialog1.Title = "Select Mod Folder"; openFileDialog1.FileName = ""; openFileDialog1.Sho

因此,使用我的openFileDialog和Windows窗体应用程序-我有它,所以当我单击一个按钮时,它允许我选择一个文件,它是下面的代码

    {
        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

列表是以管道分隔的

C#文件| C#| VB文件|.VB

您可以参考此以了解更多信息。。。