Change File Browser to Folder Browser

  • Thread starter Thread starter Fir5tSight
  • Start date Start date
F

Fir5tSight

Hi,

I currently have the following code that allows the user to select a
file name. However, I'll only need to select a folder. What changes do
I have to make?

private void Browse_Click(object sender,
System.EventArgs e)
{
axCommonDialog.FileName = txtInput.Text;
axCommonDialog.ShowOpen();
txtInput.Text = axCommonDialog.FileName;

}

The definition of axCommonDialog is
private AxMSComDlg.AxCommonDialog axCommonDialog;


Many thanks!
 
Back
Top