473,401 Members | 2,146 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,401 software developers and data experts.

Vb.Net , Open File Dialog

How to enable user for selecting only folders and not the files with
the Open File Dialog. i.e. I want only path of the selected folder is
to be returned by Open File Dialog.
i.e Open File Dialog should work like a Dir List Box in VB 6.0
or any other control is there to act as a Dir List Box

Help Me, Thanking You
Amit Shinde
Nov 20 '05 #1
9 38568
Cor
Amit,
There is a very nice sophisticated FolderBrowserDialog in VB.net 2003.
I hope this information save you a lot of work,
Cor
Nov 20 '05 #2
"Cor" <no*@non.com> wrote in message news:<3f***********************@reader22.wxs.nl>.. .
Amit,
There is a very nice sophisticated FolderBrowserDialog in VB.net 2003.
I hope this information save you a lot of work,
Cor


I could not find that Control(FolderBrowserDialog)
Please help me more in implementing that Control.
Thanking You
Amit D. Shinde
Nov 20 '05 #3
part of the .net framework in both 2002 and 2003 versions.

namespaces are:

system.windows.forms.openfiledialog
system.windows.forms.savefiledialog

they are found in your toolbox...look at the help files for examples of
their use.

hth,

steve
"Amit D.Shinde" <am*******@yahoo.com> wrote in message
news:9a**************************@posting.google.c om...
"Cor" <no*@non.com> wrote in message

news:<3f***********************@reader22.wxs.nl>.. .
Amit,
There is a very nice sophisticated FolderBrowserDialog in VB.net 2003.
I hope this information save you a lot of work,
Cor


I could not find that Control(FolderBrowserDialog)
Please help me more in implementing that Control.
Thanking You
Amit D. Shinde

Nov 20 '05 #4
"Amit D.Shinde" <am*******@yahoo.com> schrieb
"Cor" <no*@non.com> wrote in message
news:<3f***********************@reader22.wxs.nl>.. .
Amit,
There is a very nice sophisticated FolderBrowserDialog in VB.net
2003. I hope this information save you a lot of work,
Cor


I could not find that Control(FolderBrowserDialog)
Please help me more in implementing that Control.


It is in the toolbox. Only in VB.Net 200*3*, as Cor wrote.
--
Armin

Nov 20 '05 #5
no...it is present in 2002 version as well...both versions work swimmingly
well. ;^)

"Armin Zingler" <az*******@freenet.de> wrote in message
news:uY**************@TK2MSFTNGP10.phx.gbl...
"Amit D.Shinde" <am*******@yahoo.com> schrieb
"Cor" <no*@non.com> wrote in message
news:<3f***********************@reader22.wxs.nl>.. .
Amit,
There is a very nice sophisticated FolderBrowserDialog in VB.net
2003. I hope this information save you a lot of work,
Cor


I could not find that Control(FolderBrowserDialog)
Please help me more in implementing that Control.


It is in the toolbox. Only in VB.Net 200*3*, as Cor wrote.
--
Armin

Nov 20 '05 #6
Cor
Steve
The question was using Open File Dialog for folderDialog.
There is a folderDialog now in 2003, my expirience using OpenFileDialog for
that is lousy.
When you want it absolute do it in 2002, then I think it is even better to
make it yourself once using the treeview.
That is not such a big job if you put the special folders extra in it.
Cor
Nov 20 '05 #7
"steve" <as*@abc.com> schrieb im Newsbeitrag
news:vn************@corp.supernews.com...
> Amit,
> There is a very nice sophisticated FolderBrowserDialog in VB.net
> 2003. I hope this information save you a lot of work,
> Cor

I could not find that Control(FolderBrowserDialog)
Please help me more in implementing that Control.


It is in the toolbox. Only in VB.Net 200*3*, as Cor wrote.


no...it is present in 2002 version as well...both versions work swimmingly
well. ;^)


I can't find the FolderBrowserDialog in 2002.

--
Armin

Nov 20 '05 #8
"Cor" <no*@non.com> scripsit:
The question was using Open File Dialog for folderDialog.
There is a folderDialog now in 2003, my expirience using OpenFileDialog for
that is lousy.
When you want it absolute do it in 2002, then I think it is even better to
make it yourself once using the treeview.
That is not such a big job if you put the special folders extra in it.


Are you talking about a folder browser dialog?

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/miscctrl/folderbrowser.asp>
<http://support.microsoft.com/?kbid=306285>
<http://www.gotdotnet.com/team/vb/FolderBrowser.exe>
<http://groups.google.com/groups?selm=q0JKzDbmCHA.2144%40cpmsftngxa09>

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #9
Cor
Herfried,
Thanks, I know this, because I see it everytime when I say that I am glad
there is a new dirbox in VB.net 2003.
I think it would not cost me more than 2 hours to make it totaly from
scratch with a treeview.

But for the ones like I was when I started with VB.net this is not an easy
solution.
It cost a lot of headaches before you know how to get the personal.folder,
to make a treeview and how to get the dirinfo. :-)
When you know that, I think that it is one of the easiest things to make and
it is only a dialogform.
(That makes it more strange that there is a bug in it, or is that bug maybe
in the dirinfo too?)
Maybe I make it when I am on the road with the FCNHTA site as a demo.

I have always those starting people in mind when I see this question.
Any other one would just make it himself.

But when I see it wrong, please correct me?
:-)
Cor
Nov 20 '05 #10

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

Similar topics

7
by: Martin | last post by:
Again drawing on the groups experience:- 1. For general file opening and file saving, using VB6, are there any issues with using the FileOpen and FileSave Common Dialog Boxes? 2. Is using the...
4
by: John | last post by:
Hi, I generate a report in a comma delimited file and give it a name like MyReport.csv . I then set a Hyperlink control to point tp the file HyperLink1.text = "Download"...
2
by: Jonathan Trevor | last post by:
Hi, For the last couple of releases of a product we're developing we've been running to very wierd behavior from IE and our ASP.NET web application which serves up various types of files and I'm...
0
by: Dune | last post by:
Hi there, I have an aspx page that allows users to enter several parameters using drop downs and text boxes. The users then press a button that produces an extract based on the parameters they...
4
by: Dorte | last post by:
Hi, I am using the code below to stream a CSV file with the response object. Dim FileName As String = "Test.csv" With Web.HttpContext.Current.Response ...
2
by: Mattbooty | last post by:
Hello, Not sure if anyone else has seen this bug, but I have a form where the entire form is covered with a picturebox. The picturebox has a mouseup event. I also have an open file dialog for...
5
by: charles | last post by:
I have a question about the file Open dialog box. I would like to be able to make the dialog box bigger by selecting the bottom right-hand corner and dragging/expanding the box. I am told by...
7
by: Peter | last post by:
ASP.NET 2.0 I am trying to open a Word document and Excel document from a dialog web page, what's the best way to do that? I have tried the following: Response.Clear();...
5
by: Stefano Tonello | last post by:
Hi all, I need to call windows' "open with" dialog from my C# windows form application. After the user selects application, control must return to me (I have to launch directly the process). I...
14
by: strat18 | last post by:
My database code works on my server and one laptop, but does not function correctly on two other laptops, all four systems run Vista Business and MSaccess 2007. The code is set up to display the file...
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
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
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.