473,395 Members | 1,969 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,395 software developers and data experts.

FolderDialogBrower with Window 2000

I have created a simple program to open a
FolderDialogBrower box.

I'm trying to use the FileBrowserDialog to select a
network folder using UNC path names.

The only option that seems to work is to set
this.FolderBrowserDialog1.RootFolder =
System.Environment.SpecialFolder.DesktopDirectory
and
this.FolderBrowserDialog1.SelectedPath
= "\\Servername\..."

However, this only works with Windows XP
machines. When I try to open the FileBrowserDialog box
using Windows 2000, only the desktop directory opens
instead of the SelectedPath.

Any suggestions?
Nov 15 '05 #1
4 2791
Hello,

"Barry Pierce" <ba***************@yahoo.com> schrieb:
I have created a simple program to open a
FolderDialogBrower box.

I'm trying to use the FileBrowserDialog to select a
network folder using UNC path names.

The only option that seems to work is to set
this.FolderBrowserDialog1.RootFolder =
System.Environment.SpecialFolder.DesktopDirectory
and
this.FolderBrowserDialog1.SelectedPath
= "\\Servername\..."

However, this only works with Windows XP
machines. When I try to open the FileBrowserDialog box
using Windows 2000, only the desktop directory opens
instead of the SelectedPath.


Does this even occur with the P/Invoke versions?

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

The FolderBrowserDialog is buggy on Windows 2000, for example, the property
for hiding the button "Create new folder" doesn't work on Windows 2000
machines.

HTH,
Herfried K. Wagner
--
MVP · VB Classic, VB .NET
http://www.mvps.org/dotnet
Nov 15 '05 #2
I am trying to set the initial directory to be a UNC path
(e.g. \\servername\share1) instead of having to work my
way through Network Neighborhood.

I have looked at the FolderBrowser examples but am not
seeing a clear way to do this.

Is there a way to set the Intial Directory?
====================
Herfried K. Wagner wrote:
Does this even occur with the P/Invoke versions?

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=q0JKzDbmCHA.2144%

40cpmsftngxa09
Nov 15 '05 #3
Hello,

"Barry Pierce" <ba***************@yahoo.com> schrieb:
I have looked at the FolderBrowser examples but am not
seeing a clear way to do this.

Is there a way to set the Intial Directory?


Did you try to set the FolderBrowserDialog's SelectedPath property?

HTH,
Herfried K. Wagner
--
MVP · VB Classic, VB .NET
http://www.mvps.org/dotnet
Nov 15 '05 #4
Dear Herfried,

Thanks for your reply.

Yes, I tried the .Net 1.1 FolderBrowserDialog
SelectedPath property. However, this is what doesn't
work with Windows 2000 but does work with Windows XP.

I've tried the older version FolderBrowser code that you
referenced but have not yet figured out how to set the
initial directory to a UNC path. The examples that I have
found seem to be incomplete.
====================

Herfried K. Wagner wrote:
"Barry Pierce" <ba***************@yahoo.com> schrieb:
I have looked at the FolderBrowser examples but am not
seeing a clear way to do this.

Is there a way to set the Intial Directory?


Did you try to set the FolderBrowserDialog's

SelectedPath property?

Nov 15 '05 #5

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

Similar topics

1
by: Andi B | last post by:
Greetings all, thankyou for your help with the other things I posted about - but Im afraid I've another question: Is there a way I can get a document to resize the popup window it appears in...
12
by: HarveyB | last post by:
I would like to generate non-modal popup windows from ASP.Net code-behind. I have tried using Client Side scripting like "function Test(){ window.open('test.htm',_blank,...
31
by: Benno Bös | last post by:
If I use the following construct in the frame "main" for a link to an extern site: <A HREF="http://www.any.xy" TARGET="extern"> the Browser is creating the window "extern", loading the page...
5
by: Hemanth | last post by:
Hello there, I'm running a script that opens a popup window (which is basically a form with checkboxes and a submit button). When I click the submit button I want to run a PHP script and target...
8
by: Andante.in.Blue | last post by:
Hello, I have just inherited a legacy Access 97 database. While going through it, I noticed something strange... its Relationships window (the one accessed by Tools --> Relationships) is almost...
0
by: Jim M | last post by:
For about a year and a half now I have been working in Access 2002 at home and converting to Access 2000 for work (I need both versions). I made a few changes to forms and queries then converted to...
4
by: Barry Pierce | last post by:
I have created a simple program to open a FolderDialogBrower box. I'm trying to use the FileBrowserDialog to select a network folder using UNC path names. The only option that seems to work...
11
by: HC | last post by:
I posted this in one of the VB forums but I'm starting to think it might be more appropriate to have it here, since it really seems to be a SQL server (MSDE/Express 2005) problem: Hey, all, I...
4
by: ThePhenix | last post by:
Hi everybody, I have recently been doing a conversion for my boss for a access 2000 database (both front and backend) to a MSSQL backend. I finished the conversion today (as quite a lot of the...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
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
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...

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.