0

Hi,

Please suggest me to do FolderBrowserDialog box for "C# Web Application".

Thanks a lot,
Anjali

2
Contributors
5
Replies
7
Views
9 Years
Discussion Span
Last Post by Ramy Mahrous
0

why you need to develop it yourself as it exists? just add reference to System.Windows.Forms and use it in your web-based application.

0

Ya that's the great idea.
But iam getting this execption , can you please suggest me for this.

Exception : "Current thread must be set to single thread apartment(STA) before OLE calls can be made. Ensure that your main function has STAThreadAttribute marked on it . This exception is only raised if adebugger is attached to the process."

Thanks a lot,
Anjali

0

Its not working properly with (ctr + f5) also. Its very slow and FolderDialog is opening but does not contains anything..

Please check out the bellow code n please suggest me for the same.

private void btnBrowse_Click(object sender, EventArgs e)
{
    FolderBrowserDialog RootFile = new FolderBrowserDialog();
    if(RootFile.ShowDialog() == DialogResult.OK)
    {
        txtRootFolder.Text = RootFile.SelectedPath.ToString();
     }
} 

Thanks a lot,
Anjali ...

Edited by mike_2000_17: Fixed formatting

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.