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

OpenFileDialog/FolderBrowser default folder tree

Hello,

I have written a windows service that runs under the LocalSystem
account (launched when the computer boots up).

This service launches a GUI that contains several
OpenFileDialog/FolderBrowser components for which the initial
directory/folder root is set to Desktop.
When I log on as a user, interacts with the GUI and open a filedialog,
the Desktop folder from the localservice account shows up (at least its
name since it does not exist on my computer).

My question is : how can the OpenFileDialog/FolderBrowser components
open up to the user's desktop ? I.e. how can I initialise the tree root
? I suppose I should do this when the user first interacts with the
GUI, but how ?

Thanks,

Tibo

Apr 12 '06 #1
0 2390

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

Similar topics

11
by: Mr. B | last post by:
If you can set the 'initial' path of an OpenFileDialog box by something like the following: Dim FilesPath As String ' Files Path FilesPath = "P:\Projects\" FilesPath =...
7
by: C# newbie | last post by:
Hello, using openfiledialog, how can I retrieve the path ? thx
4
by: Nagachandra Sekhar Grandhi | last post by:
I am facing a problem with OpenFileDialog. It is as follows. I opened OpenFileDialog dialog box and selected a folder in it. After selecting the folder when i tried to delete the same folder in...
0
by: Michael A. Covington | last post by:
Is there a simple way to modify OpenFileDialog (in either Win32 or .NET) so that the user can select folders as well as files? I know about FolderBrowser, which does not show any files at all and...
2
by: SQL | last post by:
Hi, Can the OpenFileDialog be used just for folders...I want the user to only select a folder in which the files exist. Or is there something else I should be using? Thanks.
7
by: Sakharam Phapale | last post by:
Hi All, I want to give option to user for selecting directory, just like for selecting file using OpenFileDialog control. How to make it possible?
9
by: Michael A. Covington | last post by:
Is there any way to hack OpenFileDialog (either in .NET 2.0 or in Win32) that will allow the user to select a folder rather than a file? Better yet, multiselect them. I know about...
4
by: NickP | last post by:
Hi there, This is really crazy! 1. Make a folder 2. Put a text file in the folder 3. Run the following code... Dim pop As New OpenFileDialog Using pop
1
by: sam | last post by:
OpenFileDialog appears to be "holding onto" the parent folder of a selected file until the application using the dialog quits. After creating a folder containing a file, I attempted to select...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...

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.