By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,712 Members | 1,231 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,712 IT Pros & Developers. It's quick & easy.

FolderBrowserDialog problem after opening a database connection

P: n/a
I have installed the new Visual Studio 2003 and implemented the
FolderBrowserDialog.

Everything works fine, if I open the FolderBrowserDialog before
opening a Database Connection.

If I open the FolderBrowserDialog after I opened the database
connection no folders will be displayed in the FolderBrowserDialog.
It's empty.
1. it works:
------------------------------------

//open a test-form with a button, which opens the folderBrowserDialog
Anja.test oTest = new Anja.test();
oTest.ShowDialog();

//open Database-connection
OleDbConnection odconnScotty = new OleDbConnection(sConnectionString);
odconnScotty.Open();
2. it doesn't work:
------------------------------------

//open Database-connection
OleDbConnection odconnScotty = new OleDbConnection(sConnectionString);
odconnScotty.Open();

//open a test-form with a button, which opens the folderBrowserDialog
Anja.test oTest = new Anja.test();
oTest.ShowDialog();
What has the database to do with the FolderBrowserDialog???
Jul 19 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.