473,320 Members | 1,848 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,320 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 19 '05 #1
4 2487
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 19 '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 19 '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 19 '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 19 '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,...
0
by: Tom Dacon | last post by:
"Open .Net Command Window Here" context menu for Windows Explorer: The reg file described below adds a new menu item to Windows Explorer's context menu when you right-click over a folder (or the...
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: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

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.