Do you mean having the user select a file? If so, something like this would work:
System.Windows.Forms.OpenFileDialog oSelectFile = new System.Windows.Forms.OpenFileDialog();
DialogResult dr = oSelectFile.ShowDialog();
if(dr == DialogResult.OK)
{
// oSelectFile.FileName contains the name of the file selected.
}
~~Bonnie
>How would I go about searching for a file on My Computer at run time? >I might want to narrow the search down to only local drives, in that case how can I get an array or collection of local drives? > >Thanks, >Einar