473,399 Members | 3,302 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Folders Dialog Not Showing up properly

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.

Apr 12 '06 #1
2 1906
Hello,

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

Tibo

ks*******@gmail.com wrote:
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.


Apr 12 '06 #2
Thanks dude. I am a beginner. Seems i am a long way behind....

Apr 12 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Michael | last post by:
Hello Currently I'm migrating an applet from Java 1.1 to 1.3. Targetplattform: Microsoft Internet Explorer 5.x with Sun's Java VM 1.3.1 Problem: The attached applet works fine with the...
5
by: DD | last post by:
I have been on VBnet and used the Browse for Folders Dialog code, i have two problems 1.Access keeps telling me that the Unload Me is an unknown. 2. What i really want is to open the dialog go...
13
by: cefrancke | last post by:
I have a custom toolbar for users during any preview of a report launched by a button click on a form. I would like to add a toolbar button to launch the Print Dialog (like 'Ctrl-P' or...
0
by: Yavuz Bogazci | last post by:
Hi, how can i show all Outlook Folder (wich are listed in outlook folder view, too) in an listbox or treeview? i found only samples for showing the exchange public folders folder list. but i...
4
by: Noa | last post by:
Hi, Is there a way to use OpenFileDialog1 in order to multi-select folders? I saw in msdn site a sample of multi-file-selections. I need to select multiple folders and to apply an algorithm on...
1
by: Jeremy | last post by:
Hello, I'm thinking this may be an easy one but I am getting frustrated. How can I detect if a process is showing a modal dialog. Like "Are you sure you want to exit?", or an error message...
3
by: Gustaf | last post by:
Using VS.NET 2003 with all the 1.1 framework updates. I've been subjected to this bug in 2 separate projects, and in both cases, I've found no way back other than starting from scratch again (which...
6
by: kdikert | last post by:
I have a worker thread, and when the worker is done I want it to show a popup dialog. The sample application below demonstrates this. There are two buttons: a "Show dialog" button which immediately...
2
by: Coxmg | last post by:
Here is the code, ACCESS 2007: Hello, I have a dialog box that opens on a form that lets the user browse files. I simply want to limit it to Folders, how can I do that? Need ASAP. Thanks. ACCESS...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.