473,490 Members | 2,592 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

C# 2008 fileopendialog

Hi
is there a way to use the fileopen dialog in c# 2008, so that when i
am traversing a directory to find a file to open, if i click on a
shortcut to a file or a shortcut to a directory, it will open the file
or diretory pointed to by that shortcut.
Of course if the shortcut is point to a directory it should just take
to that directory to let me select a file inside.

At the moment i cannot get the fileopen dialog to show any shortcuts
in the directory i am looking at.

Any help appreciated

thanks

Peted
Jun 27 '08 #1
2 2934
On 24 Jun., 06:55, Peted wrote:
Hi
is there a way to use the fileopen dialog in c# 2008, so that when i
am traversing a directory to find a file to open, if i click on a
shortcut to a file or a shortcut to a directory, it will open the file
or diretory pointed to by that shortcut.
Of course if the shortcut is point to a directory it should just take
to that directory to let me select a file inside.

At the moment i cannot get the fileopen dialog to show any shortcuts
in the directory i am looking at.

Any help appreciated

thanks

Peted
Normally you would set OpenFileDialog.DereferenceLinks to determine
how the Dialog deals with shortcuts, however, as far as I am aware,
the default setting should already be to follow the shortcut.
Could you possibly post a short example of the code that is causing
the problem?

Kevin
Jun 27 '08 #2
My bad,
i got myself totaly confused and made a mistake

to clarify this i should have said

i wanted to use FolderBrowserDialog to browse through a directory
structure, and if there was a shortcut pointing to another directory
be able to select the shortcut and go there,

however it is FolderBrowserDialog that apparently does not show
shortcuts becasue shortcuts are actually files.

and i cant use the OpenFileDialog becasue i cant select folders with
it.

Is it possible tocombine the features of one into the other, i think
to make the FolderBrowserDialog select and use shortcuts would be my
best option.

Is this possible ?

thanks for any help

Peted

>
Normally you would set OpenFileDialog.DereferenceLinks to determine
how the Dialog deals with shortcuts, however, as far as I am aware,
the default setting should already be to follow the shortcut.
Could you possibly post a short example of the code that is causing
the problem?

Kevin
Jun 27 '08 #3

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

Similar topics

1
2298
by: a_rybicki | last post by:
"Hi - I'm experiencing something strange when I call a FileOpenDialog from a dialog box in my application (Borland C++ 6). Basically, here's the scenario: - Open my own child dialog from the...
3
10187
by: gregma | last post by:
I hope this hasn't been covered a million times!! I have searched for alternatives to selecting a directory or multiple directories using FileOpenDialog, and haven't found anything like I need. I...
1
2137
by: Anita C | last post by:
I am trying to follow the Ms sample in the .Net SDK/Technologies/Interop/PlatformInvoke/WinAPIs/CS- to click on a button on a webform to bring up the fileopendialog. But it does not seem to work...
4
1534
by: bj7lewis | last post by:
I am currently C++/Win32/MFC & C# programmer using VS.NET 2002 and jumped into VS.NET 2003 but that was a waste so I skipped VS.NET 2005 cause buying VS.NET 2003. Now after checking out VS.NET 2008...
0
1608
by: =?Utf-8?B?TWlyYW5v?= | last post by:
I tried it several times, setup disk is not damaged, everything is fine, but it always fails with the error below after completing like 75% of the installation. Then I saw other posts, and figured...
0
1495
by: Fortis Florin | last post by:
CALL FOR PAPERS: Workshop on Workflow and Process Management (WfPM'08), September 2008, Timisoara, Romania ...
0
1263
by: John | last post by:
Hi An outlook 2003 add-in solution created in vs 2008 on a pc with outlook 2007 when re-opened in vs 2008 brings up the conversion wizard. Cancelling wizard closes solution and does not allow to...
0
1586
by: Fortis Florin | last post by:
Final CFP: Workshop on Workflow and Process Management (WfPM'08), September 2008, Timisoara, Romania EXTENDED DEADLINES ___________________________________________________________________________­...
0
1058
by: shamshujjuhah | last post by:
I am using the following code to open file. Now I want to position the fileopen dialog to the centre of screen. Can someone tell me how can I acheive this? code: -------------- OpenFileDialog...
0
7146
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,...
1
6852
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...
0
7356
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
5448
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,...
0
4573
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...
0
3074
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1389
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
628
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
277
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.