FolderBrowseDialog Box

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Mar 2008
Posts: 13
Reputation: kanjali is an unknown quantity at this point 
Solved Threads: 0
kanjali kanjali is offline Offline
Newbie Poster

FolderBrowseDialog Box

 
0
  #1
May 27th, 2008
Hi,

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

Thanks a lot,
Anjali
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 2,065
Reputation: Ramy Mahrous is just really nice Ramy Mahrous is just really nice Ramy Mahrous is just really nice Ramy Mahrous is just really nice 
Solved Threads: 256
Featured Poster
Ramy Mahrous's Avatar
Ramy Mahrous Ramy Mahrous is offline Offline
Postaholic

Re: FolderBrowseDialog Box

 
0
  #2
May 27th, 2008
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.
BI Developer | LINKdotNET
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 13
Reputation: kanjali is an unknown quantity at this point 
Solved Threads: 0
kanjali kanjali is offline Offline
Newbie Poster

Re: FolderBrowseDialog Box

 
0
  #3
May 28th, 2008
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
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 2,065
Reputation: Ramy Mahrous is just really nice Ramy Mahrous is just really nice Ramy Mahrous is just really nice Ramy Mahrous is just really nice 
Solved Threads: 256
Featured Poster
Ramy Mahrous's Avatar
Ramy Mahrous Ramy Mahrous is offline Offline
Postaholic

Re: FolderBrowseDialog Box

 
0
  #4
May 28th, 2008
Just because you debug, run your web-based application (Ctrl + F5) there is no exception.
BI Developer | LINKdotNET
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 13
Reputation: kanjali is an unknown quantity at this point 
Solved Threads: 0
kanjali kanjali is offline Offline
Newbie Poster

Re: FolderBrowseDialog Box

 
0
  #5
May 29th, 2008
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 ...
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 2,065
Reputation: Ramy Mahrous is just really nice Ramy Mahrous is just really nice Ramy Mahrous is just really nice Ramy Mahrous is just really nice 
Solved Threads: 256
Featured Poster
Ramy Mahrous's Avatar
Ramy Mahrous Ramy Mahrous is offline Offline
Postaholic

Re: FolderBrowseDialog Box

 
0
  #6
May 29th, 2008
Authentication problem, I'll reply you ASAP.
BI Developer | LINKdotNET
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the C# Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC