Beispiel #1
0
 private void browsBtn_Click(object sender, EventArgs e)
 {
     if (FolderBrowseDialog.ShowDialog() == DialogResult.OK)
     {
         filePathTxt.Text = FolderBrowseDialog.SelectedPath;
     }
 }
Beispiel #2
0
        private void BrowseButton_Click(object sender, EventArgs e)
        {
            FolderBrowseDialog.Description         = "Open DBC Folder";
            FolderBrowseDialog.ShowNewFolderButton = false;

            if (FolderBrowseDialog.ShowDialog() == DialogResult.OK)
            {
                DBCPathBox.Text = FolderBrowseDialog.SelectedPath;
            }
        }
Beispiel #3
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (FolderBrowseDialog.ShowDialog() == DialogResult.OK)
     {
         FolderPath.Text = FolderBrowseDialog.SelectedPath;
     }
     folderlist.Add(FolderPath.Text);
     if (FolderPath.Text != "")
     {
         string itm = FolderPath.Text;
         if (!(folderList.Items.Contains(itm)))
         {
             folderList.Items.Add(itm);
         }
     }
 }