473,503 Members | 7,823 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

OpenFolder dialog ???

Dear all,

I need to display a common Open folder dialog in order to be able to select
a particular folder.
I have check for the FolderBrowserDialog object but it does not display my
all drive structure, myDocument folder, myComputer ...

In fact I fold like to getb the same dialog as for the OpenFile or SaveAs
file dialog but for a folder selection

How can I do this

thanks for your help
regards
serge
Nov 22 '05 #1
8 2040
Serge,

I thought that I became crazy therefore I even tried it.
I have check for the FolderBrowserDialog object but it does not display my
all drive structure, myDocument folder, myComputer ...

For me it shows this all.

I hope this helps,

Cor
Nov 22 '05 #2
Serge,

I thought that I became crazy therefore I even tried it.
I have check for the FolderBrowserDialog object but it does not display my
all drive structure, myDocument folder, myComputer ...

For me it shows this all.

I hope this helps,

Cor
Nov 22 '05 #3
Could you please post sample how you set it, maybe I miss something

thnaks

"Cor Ligthert" wrote:
Serge,

I thought that I became crazy therefore I even tried it.
I have check for the FolderBrowserDialog object but it does not display my
all drive structure, myDocument folder, myComputer ...

For me it shows this all.

I hope this helps,

Cor

Nov 22 '05 #4
Could you please post sample how you set it, maybe I miss something

thnaks

"Cor Ligthert" wrote:
Serge,

I thought that I became crazy therefore I even tried it.
I have check for the FolderBrowserDialog object but it does not display my
all drive structure, myDocument folder, myComputer ...

For me it shows this all.

I hope this helps,

Cor

Nov 22 '05 #5
Serge,

I was trying it serious with the designer however it is not more than in
VBNet

\\\
dim mydialog as new folderbrowserdialog
mydialog.showdialog
///
and in C#
\\\
FolderBrowserDialog mydialog = new FolderBrowserDialog();
mydialog.ShowDialog();
////
I hope this helps,

Cor
Nov 22 '05 #6
Serge,

I was trying it serious with the designer however it is not more than in
VBNet

\\\
dim mydialog as new folderbrowserdialog
mydialog.showdialog
///
and in C#
\\\
FolderBrowserDialog mydialog = new FolderBrowserDialog();
mydialog.ShowDialog();
////
I hope this helps,

Cor
Nov 22 '05 #7
Imports System
Imports System.IO.Path
Dim d As New FolderBrowserDialog

Private Sub btnBrowse_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnBrowse.Click
d.ShowDialog()
Debug.WriteLine(d.SelectedPath)

' make a reference to a directory
Dim di As New IO.DirectoryInfo(d.SelectedPath)
Dim diar1 As IO.FileInfo() = di.GetFiles()
Dim dra As IO.FileInfo

'list the names of all files in the specified directory
For Each dra In diar1
lstVideo.Items.Add(dra) <==== i added listbox....u can
do any control u want
Next
End Sub

serge calderara wrote:
Dear all,

I need to display a common Open folder dialog in order to be able to select
a particular folder.
I have check for the FolderBrowserDialog object but it does not display my
all drive structure, myDocument folder, myComputer ...

In fact I fold like to getb the same dialog as for the OpenFile or SaveAs
file dialog but for a folder selection

How can I do this

thanks for your help
regards
serge

Nov 22 '05 #8
Imports System
Imports System.IO.Path
Dim d As New FolderBrowserDialog

Private Sub btnBrowse_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnBrowse.Click
d.ShowDialog()
Debug.WriteLine(d.SelectedPath)

' make a reference to a directory
Dim di As New IO.DirectoryInfo(d.SelectedPath)
Dim diar1 As IO.FileInfo() = di.GetFiles()
Dim dra As IO.FileInfo

'list the names of all files in the specified directory
For Each dra In diar1
lstVideo.Items.Add(dra) <==== i added listbox....u can
do any control u want
Next
End Sub

serge calderara wrote:
Dear all,

I need to display a common Open folder dialog in order to be able to select
a particular folder.
I have check for the FolderBrowserDialog object but it does not display my
all drive structure, myDocument folder, myComputer ...

In fact I fold like to getb the same dialog as for the OpenFile or SaveAs
file dialog but for a folder selection

How can I do this

thanks for your help
regards
serge

Nov 22 '05 #9

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

Similar topics

1
5440
by: Prosonman | last post by:
Hi, What is the best way to transfer variables to and from a dialog box? My project consists of a form with a number of controls, lets say three Labels, when a label is clicked it opens a dialog...
4
366
by: serge calderara | last post by:
Dear all, I need to display a common Open folder dialog in order to be able to select a particular folder. I have check for the FolderBrowserDialog object but it does not display my all drive...
23
6952
by: George | last post by:
Is there a way to customize the open file common dialog? I am trying to modify the button text so I can create a delete file common dialog. I need the same functionality of the open file common...
1
4232
by: Carmine | last post by:
I'm currently writing a small program that churns on a repetitive task while displaying a progress & cancel modeless dialog. I've been having problems due to threadlocking, and I was wondering if...
4
11616
by: Alexander | last post by:
Hi, I have written a program that takes on some operations much more time than I expected. As I have seen users clicking wildly on the screen to make something happen, I want to follow the...
10
2731
by: Guadala Harry | last post by:
I have a modal dialog that currently does all of the following except item 4. 1. lets users select a graphic from a list of thumbnails (and when selected, displays the full-size image in a...
7
1374
by: MrKrich | last post by:
Is there is something like OpenFile Dialog but open folder instead?
11
5259
by: Zytan | last post by:
I have created a new form from the main form. When I close the main form with the 'x' close button, its Form.FormClosed event is run, but not the dialog's. Is this normal? It is ok /...
0
1824
by: Moezzie | last post by:
So ive got a bit of a problem here. Ive been searching the net about this for quite some time now but i just cant seem to figure out how to open a dialog that ive made in QtDesigner. Of corse i...
11
2330
by: VK | last post by:
In the continuation of the discussion at "Making Site Opaque -- This Strategy Feasible?" and my comment at http://groups.google.com/group/comp.lang.javascript/msg/b515a4408680e8e2 I have...
0
7193
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
7264
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
7316
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
7449
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
5562
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,...
1
4992
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
1495
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 ...
1
728
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
371
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.