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

FolderBrowserDialog

Hello,

I'm running VS.net 2002 with .net framework 1.0

I want to use 'System.Windows.Forms.FolderBrowserDialog' which is available in .net framework 1.1. From reading posts, I understand that I can't use 1.1 with VS.net 2002. Upgrading my VS.net at this point is not an option. So, how can I trick the OpenFileDialog to act as a FolderBrowserDialog? Or, is there some other way to accomplish this.

Thanks,
Mark
Nov 20 '05 #1
4 4001
Hi Mark!

I guess you could call the ShBrowseForFolder() API..

here's a sample
http://www.dotnet247.com/247referenc.../11/59059.aspx

here's the function help file :
http://msdn.microsoft.com/library/en...eforfolder.asp

--
Best Regards
Yanick Lefebvre
"Mark" <an*******@discussions.microsoft.com> a écrit dans le message de
news:2D**********************************@microsof t.com...
Hello,

I'm running VS.net 2002 with .net framework 1.0

I want to use 'System.Windows.Forms.FolderBrowserDialog' which is available in .net framework 1.1. From reading posts, I understand that I
can't use 1.1 with VS.net 2002. Upgrading my VS.net at this point is not an
option. So, how can I trick the OpenFileDialog to act as a
FolderBrowserDialog? Or, is there some other way to accomplish this.
Thanks,
Mark

Nov 20 '05 #2
Sorry. I pointed you to a CSharp Sample... here's one for VB.NET
http://www.codeguru.com/vb/controls/...cle.php/c3051/
--
Best Regards
Yanick Lefebvre

"Zoury" <ya*************@hotmail.com> a écrit dans le message de
news:eR*************@TK2MSFTNGP10.phx.gbl...
Hi Mark!

I guess you could call the ShBrowseForFolder() API..

here's a sample
http://www.dotnet247.com/247referenc.../11/59059.aspx

here's the function help file :
http://msdn.microsoft.com/library/en...eforfolder.asp
--
Best Regards
Yanick Lefebvre
"Mark" <an*******@discussions.microsoft.com> a écrit dans le message de
news:2D**********************************@microsof t.com...
Hello,

I'm running VS.net 2002 with .net framework 1.0

I want to use 'System.Windows.Forms.FolderBrowserDialog' which is available in .net framework 1.1. From reading posts, I understand that I
can't use 1.1 with VS.net 2002. Upgrading my VS.net at this point is not

an option. So, how can I trick the OpenFileDialog to act as a
FolderBrowserDialog? Or, is there some other way to accomplish this.

Thanks,
Mark


Nov 20 '05 #3
Hi Mark,

I got this from Google

..NET 1.0:

Folder Browser component for .NET
<URL:http://www.codeproject.com/cs/miscctrl/folderbrowser.asp>

306285 - HOW TO: Implement a Managed Component that Wraps the Browse For
Folder Common Dialog Box by Using Visual C# .NET
<URL:http://support.microsoft.com/?kbid=306285>

FolderBrowser.msi
<URL:http://www.gotdotnet.com/team/vb/FolderBrowser.exe>

How to pick a directory
<URL:http://groups.google.com/groups?selm=q0JKzDbmCHA.2144%40cpmsftngxa09>

(from a message from Herfried)

Cor


Nov 20 '05 #4
* "=?Utf-8?B?TWFyaw==?=" <an*******@discussions.microsoft.com> scripsit:
I'm running VS.net 2002 with .net framework 1.0

I want to use 'System.Windows.Forms.FolderBrowserDialog' which is
available in .net framework 1.1. From reading posts, I understand that
I can't use 1.1 with VS.net 2002.
Right.
So, how can I trick the OpenFileDialog to act as a
FolderBrowserDialog? Or, is there some other way to accomplish this.


From my FAQ:

..NET 1.0:

Folder Browser component for .NET
<URL:http://www.codeproject.com/cs/miscctrl/folderbrowser.asp>

306285 - HOW TO: Implement a Managed Component that Wraps the Browse For
Folder Common Dialog Box by Using Visual C# .NET
<URL:http://support.microsoft.com/?kbid=306285>

FolderBrowser.msi
<URL:http://www.gotdotnet.com/team/vb/FolderBrowser.exe>

How to pick a directory
<URL:http://groups.google.com/groups?selm=q0JKzDbmCHA.2144%40cpmsftngxa09>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #5

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

Similar topics

0
by: Anja | last post by:
I have installed the new Visual Studio 2003 and implemented the FolderBrowserDialog. Everything works fine, if I open the FolderBrowserDialog before opening a Database Connection. If I open...
25
by: | last post by:
Hi, The following code shows the FolderBrowserDialog = broken. FolderBrowserDialog folderDialog = new FolderBrowserDialog(); folderDialog.ShowNewFolderButton = false;...
1
by: alf | last post by:
Hi, I am using a FolderBrowserDialog to allow the user to select a folder as follows: FolderBrowserDialog folderBrowserDialog1 = new FolderBrowserDialog(); folderBrowserDialog1.RootFolder =...
9
by: hhh12347 | last post by:
FolderBrowserDialog crashes on my Windows 2000 computer. Here is a C# test program: using System; using System.Windows.Forms; public class TestForm : Form { FolderBrowserDialog...
0
by: Tommy Clark | last post by:
I am using Microsoft Development Environment 2003 Version 7.1.3088 and .NET Framework 1.1 Version 1.1.4322 SP1. I have an MFC application that we have ported to .NET and have added the...
6
by: John Krueger | last post by:
The FolderBrowserDialog control in my toolbox has vanished! I did not delibratly remove it and it is just not there anymore. I tried to add it back to the toolbox but there isn't even a .NET...
12
by: JohnR | last post by:
I have narrowed a problem down to a simple example. A form with two buttons. One EXIT and one FBD. The exit button does an "END" to end the application. The FBD button does a...
4
by: hotmit | last post by:
I'm trying to create a program that dynamicly saves and loads path of a FolderBrowserDialog , but I ran into a problem. Since FolderBrowserDialog is not a Control, therefore it doesn't have...
3
by: antuantuan | last post by:
Hi. How can I initialize a FolderBrowserDialog choosing a particular RootFolder? I saw that FolderBrowserDialog has a RootFolder member, but it accepts only an Environment.SpecialFolder (but I...
2
by: Marcel Brekelmans | last post by:
Hi, I'm trying to display a MessageBox after a FolderBrowserDialog. I see that it gets displayed, but not activated. The form is not in front and when I have some other forms open the MessageBox...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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?

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.