Exemple #1
0
        private void cmbEditDirectory_SelectionChangeCommitted(object sender, EventArgs e)
        {
            using (FolderBrowserDialog fbd = new FolderBrowserDialog())
            {
                string defaultvalue = ei_.Initial;
                fbd.SelectedPath = defaultvalue;
                if (fbd.ShowDialog() != DialogResult.OK)
                {
                    cmbEditDirectory.Text = defaultvalue;
                    lvMain.EndEditing(false);
                    return;
                }

                ei_.Result = fbd.SelectedPath;
                lvMain.EndEditing(true);
            }
        }
Exemple #2
0
 private void control_SelectedValueChanged(object sender, System.EventArgs e)
 {
     listViewEx1.EndEditing(true);
 }