473,614 Members | 2,107 Online
Bytes | Software Development & Data Engineering Community
+ 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 2943
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. DereferenceLink s 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 FolderBrowserDi alog 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 FolderBrowserDi alog 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 FolderBrowserDi alog select and use shortcuts would be my
best option.

Is this possible ?

thanks for any help

Peted

>
Normally you would set OpenFileDialog. DereferenceLink s 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
2312
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 main window. - Click on a "browse" button to open the FileOpen dialog. My dialog allocates the TData and TFileOpenDialog and then Execute()'s it.
3
10192
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 need the exact capabilities of FileOpenDialog, just with the added ability to add directories. I need the MultiSelect also! Has anyone added this functionality to the existing FileOpenDialog? Thanks! Greg
1
2143
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 and the process timesout. Can someone please point out any sample etc. which might be using the Win.API or any other technique to customize a fileopendialog. The reason why I am trying to use the API instead of the HTML input= file is that I need...
4
1548
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 Beta2 I think VS.NET 2008 is worth the upgrade. But I want to hold off(five+ years depending on features) on more further upgrades OSs & ISEs cause of too many releases - too soon - too much money.... So now going to VS.NET 2008 I want to setup a...
0
1617
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 out others are experiencing the same issue, so this is not something only with me. Please let me know what I need to do to install it finally. Thanks. Windows Mobile 5.0 SDK R2 for Smartphone: Error: Installation failed for component...
0
1506
by: Fortis Florin | last post by:
CALL FOR PAPERS: Workshop on Workflow and Process Management (WfPM'08), September 2008, Timisoara, Romania ___________________________________________________________________________________________________________________ WfPM'08 - Workshop on Workflow and Process Management in conjunction with SYNASC-2008 10th International Symposium on
0
1270
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 proceed. The development machine has Office 2007 installed but as production machines have Outlook 2003 therefore Outlook 2003 project template is selected for this solution. How can I avoid the conversion of the project?
0
1604
by: Fortis Florin | last post by:
Final CFP: Workshop on Workflow and Process Management (WfPM'08), September 2008, Timisoara, Romania EXTENDED DEADLINES ___________________________________________________________________________­ ___________________ WfPM'08 -- Workshop on Workflow and Process Management in conjunction with September 29, 2008
0
1062
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 fileDialog = new OpenFileDialog(); if (fileDialog.ShowDialog() == DialogResult.OK) { //do something }
0
8182
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
8627
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
8579
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...
0
7093
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6088
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5540
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();...
1
2568
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 we have to send another system
1
1747
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1425
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.