473,799 Members | 3,065 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

FolderBrowserDi alog hangs in 2005

I have created an app that makes use of the FolderBrowserDi alog.

Upon building the app, installing and running it, and invoking the form
using the dialog, it hangs upon folder selection and goes "not responding"

Upon debugging, it hangs as well upon executing the line that extracts the
selected folder without further explanation. All looks well in the debugger
prior to executing the line marked with <<<<<< below. When I step over that
line, it hangs.

With FolderBrowserDi alog1
..RootFolder = Environment.Spe cialFolder.Desk top

..SelectedPath = Environment.Spe cialFolder.Desk top

..Description = "Please select the desired template(s)..."

If .ShowDialog = DialogResult.Ca ncel Then

Exit Sub

End If

If .ShowDialog = DialogResult.OK Then

DestinationPath = .SelectedPath <<<<<<<<

End If

End With
I noticed the same behavior from a downloaded exe created in VS2005 using
the folderbrowser --- thus, I have two indenpent instances of the
browserdialog hanging, one not of my creation.

Any insights?

--
Grumpy Aero Guy


Jun 17 '06
11 3024
OK... did it ...

(except i used a textbox instead of a lable, which shouldn't matter...)

When I run the project from within VS2005, it works, although the dialog is
VERY sluggish.... takes a LONG time to navigate to "My Computer", acts as
though it'd deciding whether it wants to hang or physically work....

When I build the solution, and run the .exe in the "Release" folder, it
hangs upon selecting a folder in the dialog....

As I indicated before, I have downloaded a few exe s from CodeProject that
use folderbrowsers, and get the SAME hanging.....

Try the exe thing in the release folder several times. I would be curious if
you get a hang.

FWIW, I did a quick google on "folderbrowserd ialog hans VS 2005" and get
quite a few "hits"... this one is interesting:

http://groups.google.com/group/micro...c4cb022010b082

here's MY code:

Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As
System.EventArg s) Handles Button1.Click

With FolderBrowserDi alog1

..RootFolder = Environment.Spe cialFolder.Desk top

..SelectedPath = Environment.Spe cialFolder.Desk top.ToString

..Description = "Please select the desired template(s)..."

If .ShowDialog = Windows.Forms.D ialogResult.OK Then

Me.TextBox1.Tex t = .SelectedPath

End If

End With

End Sub


--
Grumpy Aero Guy

"gene kelley" <ok**@by.me> wrote in message
news:1m******** *************** *********@4ax.c om...
On Mon, 19 Jun 2006 02:44:16 GMT, "Grumpy Aero Guy" <fb@beerme.or g>
wrote:
My Bad..

It is always hanging here... even in debugger:

Me.Label1.Tex t = .SelectedPath

It's the .selectedpath line that hangs

Start a new project. Add a FolderBrowserDi alog, Button and Label.
Copy the code for the Button1_Click event that I previously posted and
paste it to the button click event in the project. Run the example.

What results do you get?

Gene

Jun 19 '06 #11
BTW, a re-boot gives you one shot at it working. Any second attempt, it
hangs. I get similiar behavior described via the link in the previous
e-mail.

--
Grumpy Aero Guy

"Grumpy Aero Guy" <fb@beerme.or g> wrote in message
news:lf******** *********@torna do.ohiordc.rr.c om...
OK... did it ...

(except i used a textbox instead of a lable, which shouldn't matter...)

When I run the project from within VS2005, it works, although the dialog
is VERY sluggish.... takes a LONG time to navigate to "My Computer", acts
as though it'd deciding whether it wants to hang or physically work....

When I build the solution, and run the .exe in the "Release" folder, it
hangs upon selecting a folder in the dialog....

As I indicated before, I have downloaded a few exe s from CodeProject that
use folderbrowsers, and get the SAME hanging.....

Try the exe thing in the release folder several times. I would be curious
if you get a hang.

FWIW, I did a quick google on "folderbrowserd ialog hans VS 2005" and get
quite a few "hits"... this one is interesting:

http://groups.google.com/group/micro...c4cb022010b082

here's MY code:

Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As
System.EventArg s) Handles Button1.Click

With FolderBrowserDi alog1

.RootFolder = Environment.Spe cialFolder.Desk top

.SelectedPath = Environment.Spe cialFolder.Desk top.ToString

.Description = "Please select the desired template(s)..."

If .ShowDialog = Windows.Forms.D ialogResult.OK Then

Me.TextBox1.Tex t = .SelectedPath

End If

End With

End Sub


--
Grumpy Aero Guy

"gene kelley" <ok**@by.me> wrote in message
news:1m******** *************** *********@4ax.c om...
On Mon, 19 Jun 2006 02:44:16 GMT, "Grumpy Aero Guy" <fb@beerme.or g>
wrote:
My Bad..

It is always hanging here... even in debugger:

Me.Label1.Te xt = .SelectedPath

It's the .selectedpath line that hangs

Start a new project. Add a FolderBrowserDi alog, Button and Label.
Copy the code for the Button1_Click event that I previously posted and
paste it to the button click event in the project. Run the example.

What results do you get?

Gene


Jun 19 '06 #12

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

Similar topics

0
1877
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 the FolderBrowserDialog after I opened the database connection no folders will be displayed in the FolderBrowserDialog. It's empty.
25
2241
by: | last post by:
Hi, The following code shows the FolderBrowserDialog = broken. FolderBrowserDialog folderDialog = new FolderBrowserDialog(); folderDialog.ShowNewFolderButton = false; folderDialog.ShowDialog(); Setting ShowNewFolderButton to false does bugger all. If I set this to false it is STILL shown. Genius.
9
2427
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 folderBrowserDlg; OpenFileDialog openFileDlg;
10
1962
by: Tomas Vera | last post by:
Hello All, I'ma having trouble getting GetCurrentProcess() to work properly. What I'm trying to accomplish is list all running processes. But my call get GetProcesses() hangs. While testing things out I found that the tiny program listed below hangs as well. Am I missing something?
5
2313
by: Loane Sharp | last post by:
Hi there I've got a hang of a problem ... I'm running the .NET framework (2.0.40903), SQL Server 2000 and SQL Express 2005 on Windows XP Pro on a pretty good and new IBM Thinkpad X41. Some time ago, following the advice in http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvs05/html/codecompilation.asp, I used aspnet_compiler.exe to compile my application. Soon thereafter, every
12
5880
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 FolderBrowserDialog and nothing else. When I start the application and hit EXIT everything works fine. However if it display the FBD box (even if I don't pick a folder and immediately hit cancel) and then try to exit one of two things happens. Either (1) the...
3
4110
by: Trevor | last post by:
I need to find a way to see if the user clicked cancel on a FolderBrowserDialog. Thanks for any help. Trevor From http://www.developmentnow.com/g/38_0_0_0_0_0/dotnet-languages-vb.htm Posted via DevelopmentNow.com Groups http://www.developmentnow.com
3
6064
by: Edwin Smith | last post by:
I have a 2 form project in VS2005 that now hangs whenever I try to do anything with the second form. This seems to have started when I added some SQL tables from a Pervasive v.9 database using the Pervasive ODBC driver. The devenv.exe process hangs and will not respond with about 50% cpu usage and about 100 megs of memory used. I am running it on an Athlon 64 bit dual core with 32 bit Windows XP pro. I have 2 megs of memory so I don't...
3
6730
by: ImageAnalyst | last post by:
I'm trying to have the user browse to a folder, once they click a button, using the standard FolderBrowserDialog tool, System.Windows.Forms.FolderBrowserDialog. I'm using VB.Net 2005. There is a property, SelectedPath, that you're supposed to be able to set that will initialize the folder browser window so that the tree structure is already opened at that folder. The problem is that it doesn't seem to work. No matter what I put, it has...
0
9546
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10247
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9079
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...
0
6809
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();...
0
5467
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5593
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4146
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
2
3762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2941
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.