I have the following button click event:
private void btnRun_Click(object sender, EventArgs e) { label1.Visible = true; if (SelectDatabase()) { if (string.IsNullOrEmpty(txtFolderAddress.Text)) MessageBox.Show("Please select a folder to begin the search."); else { if (cbRecurse.Checked == false || Directory.GetDirectories(initialDirectory).Length == 0) { CheckSingleFolder(); } else { CheckSingleFolder(); directoryRecurse(initialDirectory); } } } }
In fact, it performs a few checks and then runs a directory recursion looking for specific files. However, the very first line of code to make a shortcut visible does not happen until the directories are returned? Does anyone know why this would be?
Thanks.
c # winforms
Darren young
source share