473,473 Members | 2,226 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Something similar to DirListBox in VB6?

In VB.NET it doesn't have DirListBox control, I want to
retrieve the directory name so I try to use
OpenFileDialog/SaveFileDialog and like I guess it retrieve
the file name not directory. Does in VB.NET have some
control that can select the directory name rather than
file in that directory?
Nov 20 '05 #1
3 9491
Hi Mark?

There's a class in System.Windows.Forms.Design
FolderNameEditor.FolderBrowser
which sounds like it might do the job.

The documentation says "This type supports the .NET Framework
infrastructure and is not intended to be used directly from your code.". I
don't know why - others here may be able to tell you why you shouldn't use it.

Try it and see if it bites. ;-)

Regards,
Fergus
Nov 20 '05 #2
Cor
Hi MrKrich,
In VB.NET it doesn't have DirListBox control, I want to
retrieve the directory name so I try to use
OpenFileDialog/SaveFileDialog and like I guess it retrieve
the file name not directory. Does in VB.NET have some
control that can select the directory name rather than
file in that directory?


That was one of my complains with VS.net 2002 too and I did try the same.
But it is now in VS.net 2003 and very professional DirListBox, not any more
that crampy one from VB6.
(It was one of the hidden advantages, now you can see it on some places in
the documentation).
It is called the FolderBrowserDialog.

I hope this helps a little bit.
Cor
Nov 20 '05 #3
Hello,

"Mrkrich" <mr*****@hotmail.com> schrieb:
In VB.NET it doesn't have DirListBox control, I want to
retrieve the directory name so I try to use
OpenFileDialog/SaveFileDialog and like I guess it retrieve
the file name not directory. Does in VB.NET have some
control that can select the directory name rather than
file in that directory?


NET 1.1:

System.Windows.Forms.FolderBrowserDialog

Note that there is a bug in Fx 1.1 that causes a really bad error when using
a path which is longer than ~128 characters. This occurs on unicode systems
only. Use the PInvoke solutions mentioned below instead.

The property for hiding the button that allows the user to create a new
folder doesn't work on Windows 2000.

..NET 1.0:

http://www.codeproject.com/cs/miscct...derbrowser.asp
http://support.microsoft.com/?kbid=306285
http://www.gotdotnet.com/team/vb/FolderBrowser.exe
http://groups.google.com/groups?selm...40cpmsftngxa09

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #4

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

Similar topics

5
by: Alex Gittens | last post by:
I'm new to Python from Perl, and loving it. Has there ever been any discussion of creating a similar resource as CPAN for Python, or a similar distribution method as PPMs? Seems like it would make...
8
by: windandwaves | last post by:
Hi Folk I want to create something like AMAZON: those who liked page A also liked page B (I am going to apply the concept to a few different selections, but to keep it simple I will talk about...
7
by: Tinus | last post by:
Hello all, I was wondering... Is there a way to create a Array so that I can call a value with a name i.s.o. a index number? Something similar like a DataTable. This is what I want: Declare a...
5
by: Andreas Müller | last post by:
Hi, I was wondering, if there is something similar in VB.NET like the using statement in C#. What it does is to automatically call Dispose on the object decrared with in the statement when the...
1
by: Vernon Gainous | last post by:
Does VB.NET have it's own set of controls for accessing the file system. VB6 had a DriveListBox, DirListBox, and FileListBox controls. Where are these controls for VB.NET?
59
by: MotoK | last post by:
Hi Experts, I've just joined this group and want to know something: Is there something similar to smart pointers in C or something to prevent memory leakages in C programs. Regards MotoK
3
by: chrismcb | last post by:
In C++ I want to statically create an array that contains variable arrays inside of it. Or something similar. Essentially I want to do something like this: { {"name1", {a, b, c} }, {"name2",...
9
by: =?Utf-8?B?U2NhbmJveQ==?= | last post by:
Guyz, I have just learnt how to add the 'DriveListBox', 'DirListBox' and 'FileListBox' controls that were always included in the toolbox with VB 3.0 / 4.0 / 5.0, but always missing in VBE 2005....
0
by: supriya123 | last post by:
Hi, I have one c# windows application in which I am using a DirListBox control.Its working finely but I am not getting a way for retrieving the elements of the control. Like - If I want some ith...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
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...
1
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.