473,597 Members | 2,342 Online
Bytes | Software Development & Data Engineering Community
+ 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 9519
Hi Mark?

There's a class in System.Windows. Forms.Design
FolderNameEdito r.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 FolderBrowserDi alog.

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

"Mrkrich" <mr*****@hotmai l.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.FolderBro wserDialog

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
1896
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 a great language even better. Alex -- http://tangentspace.net/cz
8
1688
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 page popularity here - like AMAZON talks about purchase patterns: those who bought A also bought B, C and D). In my mysql table, I record everytime a visitor looks at a particular page (I keep track of people with sessions and they can only look...
7
1769
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 array of some sorts, private string test; .... I don't want to get the value by saying: test but test Can this only be done with a DataTable? But DataTables are for databases
5
5599
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 block exits. using (MyBoj) { }// MyObj.Dispose is called
1
10317
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
5091
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
1556
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", {b, c} }, {"name2", {d} } } I want an array of names, and with each name I want to associate an list of
9
4447
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. And I have managed to create a simple file browsing project with the 'DriveListBox', 'DirListBox' and 'FileListBox' controls with the following code on the 'Form1' form:-
0
1031
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 element from the DirListBox to compare it with some string and then continue with some action. .Any idea would be helpful to me.
0
8272
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8035
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8258
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6688
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5847
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5431
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3886
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3927
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1238
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.