Folders Dialog Not Showing up properly

  • Thread starter Thread starter ksngroups
  • Start date Start date
K

ksngroups

FolderBrowserDialog dlg = new FolderBrowserDialog();

if ( dlg.ShowDialog() == DialogResult.OK)
{
tb_path.Text = dlg.SelectedPath;
}

I use the following code to show up a Folder Dialog. But to my surprise
the List box containing the directories or the folder information is
not shown??

I don't know why I am getting the issue. Is it the problem with the way
I have referenced the component??

Can anybody throw me some pointers on the same.
 
Hello,

You need to make sure the STAThread attribute is actually present above
the Main method that launches your GUI.

Tibo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top