473,654 Members | 3,071 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 FolderBrowserDi alog 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 2050
Serge,

I thought that I became crazy therefore I even tried it.
I have check for the FolderBrowserDi alog 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 FolderBrowserDi alog 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 FolderBrowserDi alog 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 FolderBrowserDi alog 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 folderbrowserdi alog
mydialog.showdi alog
///
and in C#
\\\
FolderBrowserDi alog mydialog = new FolderBrowserDi alog();
mydialog.ShowDi alog();
////
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 folderbrowserdi alog
mydialog.showdi alog
///
and in C#
\\\
FolderBrowserDi alog mydialog = new FolderBrowserDi alog();
mydialog.ShowDi alog();
////
I hope this helps,

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

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

' make a reference to a directory
Dim di As New IO.DirectoryInf o(d.SelectedPat h)
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 FolderBrowserDi alog 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 FolderBrowserDi alog

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

' make a reference to a directory
Dim di As New IO.DirectoryInf o(d.SelectedPat h)
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 FolderBrowserDi alog 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
5459
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 box with a text box in it and the text box data will be returned to the label that was clicked. Don't laugh but this is the code I use, it's OK for three controls but gets complicated when using alot of controls and although it works I think its...
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 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
23
6986
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 dialog but just need to change the button text from "open" to "delete". Any ideas? Thanks
1
4241
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 anyone could give me some advice. Basically when I create the modeless dialog, I'm assuming that C# under the covers will be implicitly creating a new thread for the modeless dialog's message pump. Thus I protect the state determiners with a...
4
11619
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 microsoft principles: always show them something ;) First I made up a little status dialog containing a gif image to show a little animation and a TextBox for a changing status message during the work of the main program. Just showing the dialog box...
10
2747
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 preview DIV) 2. when users close the dialog, the application receives the URL to the selected graphic. 3. the modal dialog lets the users upload a new graphic if the dialog does not present them with one they are already happy with. 4. upon uploading...
7
1378
by: MrKrich | last post by:
Is there is something like OpenFile Dialog but open folder instead?
11
5284
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 / dangerous? How can I force shutdown code within the dialog's Form.FormClosed event run? Zytan
0
1831
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 used pyuic4 to make it into python code. This is the code for my dialog window(it contains just a TextEdit and a LineEdit): from PyQt4 import QtCore, QtGui class Ui_Dialog(object): def setupUi(self, Dialog): ...
11
2351
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 realized that despite suggestions to use DHTML-based modal dialogs are very common? there is not a single fully functional reliable copyright-free cross-browser alternative to say MsgBox (VBScript) or showModalDialog (IE). This way such suggestions up to...
0
8380
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8296
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
8816
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
8710
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...
1
8497
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
5627
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
4150
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...
2
1928
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1598
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.