943,522 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 2341
  • C# RSS
May 27th, 2008
0

FolderBrowseDialog Box

Expand Post »
Hi,

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

Thanks a lot,
Anjali
Reputation Points: 10
Solved Threads: 0
Newbie Poster
kanjali is offline Offline
13 posts
since Mar 2008
May 27th, 2008
0

Re: FolderBrowseDialog Box

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.
Featured Poster
Reputation Points: 480
Solved Threads: 276
Postaholic
Ramy Mahrous is offline Offline
2,189 posts
since Aug 2006
May 28th, 2008
0

Re: FolderBrowseDialog Box

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
kanjali is offline Offline
13 posts
since Mar 2008
May 28th, 2008
0

Re: FolderBrowseDialog Box

Just because you debug, run your web-based application (Ctrl + F5) there is no exception.
Featured Poster
Reputation Points: 480
Solved Threads: 276
Postaholic
Ramy Mahrous is offline Offline
2,189 posts
since Aug 2006
May 29th, 2008
0

Re: FolderBrowseDialog Box

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 ...
Reputation Points: 10
Solved Threads: 0
Newbie Poster
kanjali is offline Offline
13 posts
since Mar 2008
May 29th, 2008
0

Re: FolderBrowseDialog Box

Authentication problem, I'll reply you ASAP.
Featured Poster
Reputation Points: 480
Solved Threads: 276
Postaholic
Ramy Mahrous is offline Offline
2,189 posts
since Aug 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: how to retrive the data
Next Thread in C# Forum Timeline: How to save and retrieve a file in a database





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC