473,804 Members | 3,433 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 38592
Cor
Amit,
There is a very nice sophisticated FolderBrowserDi alog 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 FolderBrowserDi alog in VB.net 2003.
I hope this information save you a lot of work,
Cor


I could not find that Control(FolderB rowserDialog)
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.openfiled ialog
system.windows. forms.savefiled ialog

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

hth,

steve
"Amit D.Shinde" <am*******@yaho o.com> wrote in message
news:9a******** *************** ***@posting.goo gle.com...
"Cor" <no*@non.com> wrote in message

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


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

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


I could not find that Control(FolderB rowserDialog)
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*******@free net.de> wrote in message
news:uY******** ******@TK2MSFTN GP10.phx.gbl...
"Amit D.Shinde" <am*******@yaho o.com> schrieb
"Cor" <no*@non.com> wrote in message
news:<3f******* *************** *@reader22.wxs. nl>...
Amit,
There is a very nice sophisticated FolderBrowserDi alog in VB.net
2003. I hope this information save you a lot of work,
Cor


I could not find that Control(FolderB rowserDialog)
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.super news.com...
> Amit,
> There is a very nice sophisticated FolderBrowserDi alog in VB.net
> 2003. I hope this information save you a lot of work,
> Cor

I could not find that Control(FolderB rowserDialog)
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 FolderBrowserDi alog 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.FolderBr owserDialog'

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.a sp>
<http://support.microso ft.com/?kbid=306285>
<http://www.gotdotnet.c om/team/vb/FolderBrowser.e xe>
<http://groups.google.c om/groups?selm=q0J KzDbmCHA.2144%4 0cpmsftngxa09>

--
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
16226
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 FileOpen and FileSave Common Dialog Boxes the best way to go in general? 3. For Most of my projects I will be using the same types of data input form and report output form, as discussed here recently. Also, the files that are
4
5118
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" Hyperlink1.NavigateUrl = "MyReport.csv" When the user clicks the HyperLink I would always like to
2
3199
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 getting very frustrated in trying to solve it! We content we are serving up is potentially sensitive and therefore we DO NOT want it cached on the remote client (IE) beyond the lifetime of the application rendering it (IE, Powerpoint, Word...
0
2982
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 entered. When this button is pressed and extract is prduced and IE's standard Open/Save dialog should popup so they can navigate to the directory to save the extract in, or if they want, they can choose to open and view the extract without saving it. ...
4
3696
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 Web.HttpContext.Current.Response.AddHeader("content-disposition", "attachment; filename=" & FileName) .Charset = ""
2
6159
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 loading images into the picturebox. If you double click the file you want to open in the open file dialog, it somehow interperets one of the clicks as a mouseup on the picturebox and fires the mouseup event for the picturebox. How can I get...
5
5408
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 my colleagues that this is not "standard" but find it hard to believe. Opening a file in MS word for example, the dialog has
7
4023
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(); Response.AddHeader("Content-Disposition", "attachment; filename=" + file.Name);
5
6223
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 found this solution: http://www.codeproject.com/KB/shell/openwith.aspx but it's not good for me since it will execute the process directly.
14
4282
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 path in the open dialog file name box, that way the user clicks a button on a form, the open dialog box pops up, and the user just hits enter to open the file (the only reason the dialog box pops up is if the user wants to open a different file)...
0
9579
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10575
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...
0
10330
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10076
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
9144
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
7616
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
6851
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();...
1
4297
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 we have to send another system
3
2990
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.