473,811 Members | 1,693 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 3028
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
1964
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
2315
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
5883
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
6070
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
6731
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
9728
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
10648
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
10389
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
10135
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9205
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
7670
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
6890
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
5554
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...
2
3867
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.