473,503 Members | 1,797 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

FolderBrowserDialog causes the "END" stmt to hang (crosspost from languages.vb)

Wow, this is unbelieveable. I've narrowed it down to a few lines of code.
Create a new project in VB.NET and put 2 buttons on it (a FBD button and an
EXIT button) and enter these lines for the click events:

Private Sub btnExit_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnExit.Click
End
End Sub
Private Sub btnDoFBD_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnDoFBD.Click
Dim fbd As New FolderBrowserDialog
fbd.ShowDialog()
fbd.Dispose() 'this stmt does not make any difference as to the program
hanging on the "end" stmt
End Sub

Now run the program, click the FBD button to bring up a FolderBrowserDialog
window, click CANCEL on that window and when you return to your main form
hit the EXIT button. If you get the same results I did, your program will
hang and NOT exit.

Can anybody else verify this behaviour? Does anybody have a workaround???
or am I doing something really stupid that I don't realize?

Thanks,
John

Jul 21 '05 #1
2 1546
Some add'l information... I tried this on another system and it worked
fine. We both were running the same version of the VB Studio and
development environment (SP1), so this issue becomes much more complicated.
I still have no feel for how common this error is, or what the
differentiating factor is that causes it to appear. So if anybody else can
duplicate this problem and knows why it happens, please let me know.
Thanks.

"JohnR" <Jo******@hotmail.com> wrote in message
news:1mA9e.30742$nH4.15246@trndny05...
Wow, this is unbelieveable. I've narrowed it down to a few lines of code.
Create a new project in VB.NET and put 2 buttons on it (a FBD button and
an
EXIT button) and enter these lines for the click events:

Private Sub btnExit_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnExit.Click
End
End Sub
Private Sub btnDoFBD_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnDoFBD.Click
Dim fbd As New FolderBrowserDialog
fbd.ShowDialog()
fbd.Dispose() 'this stmt does not make any difference as to the program
hanging on the "end" stmt
End Sub

Now run the program, click the FBD button to bring up a
FolderBrowserDialog
window, click CANCEL on that window and when you return to your main form
hit the EXIT button. If you get the same results I did, your program will
hang and NOT exit.

Can anybody else verify this behaviour? Does anybody have a workaround???
or am I doing something really stupid that I don't realize?

Thanks,
John

Jul 21 '05 #2
Ok. Problem solved. Are you ready for this??? I rebooted and then it
worked. No, I'm not running Win98, I am running XP. So I guess I was a
little spoiled by it's general reliability that it took me a whole day to do
what I would have done in 5 seconds if I was running Win98. I rebooted....
Oh, boy.

Thanks to those who took the time to try and duplicate this... I wanted to
share my (embarrassing) solution with you as a gentle reminder that
sometimes, even with XP, a little reboot can go a long way...

John

"JohnR" <Jo******@hotmail.com> wrote in message
news:28E9e.14240$ha3.13408@trndny02...
Some add'l information... I tried this on another system and it worked
fine. We both were running the same version of the VB Studio and
development environment (SP1), so this issue becomes much more
complicated. I still have no feel for how common this error is, or what
the differentiating factor is that causes it to appear. So if anybody
else can duplicate this problem and knows why it happens, please let me
know. Thanks.

"JohnR" <Jo******@hotmail.com> wrote in message
news:1mA9e.30742$nH4.15246@trndny05...
Wow, this is unbelieveable. I've narrowed it down to a few lines of
code.
Create a new project in VB.NET and put 2 buttons on it (a FBD button and
an
EXIT button) and enter these lines for the click events:

Private Sub btnExit_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnExit.Click
End
End Sub
Private Sub btnDoFBD_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnDoFBD.Click
Dim fbd As New FolderBrowserDialog
fbd.ShowDialog()
fbd.Dispose() 'this stmt does not make any difference as to the program
hanging on the "end" stmt
End Sub

Now run the program, click the FBD button to bring up a
FolderBrowserDialog
window, click CANCEL on that window and when you return to your main form
hit the EXIT button. If you get the same results I did, your program
will
hang and NOT exit.

Can anybody else verify this behaviour? Does anybody have a
workaround???
or am I doing something really stupid that I don't realize?

Thanks,
John


Jul 21 '05 #3

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

Similar topics

1
30128
by: Najm Hashmi | last post by:
Hi all , I am trying to create a store procedure and I get the following error: SQL0104N An unexpected token "END-OF-STATEMENT" was found following "END". Expected tokens may include: "JOIN...
3
18248
by: Summit | last post by:
Does anyone know what the C# equivalent for VB6 End is? I'm starting up a form with a boolean test. If I fail, I just want to end the app. Even though I close the form, it picks up on the line...
0
3722
by: Tom Bower | last post by:
In the Windows Task Manager if I select a Process and right-click, I can choose to "End Process" or "End Process Tree." Is there a VB equivalent for "End Process Tree" if you have a handle to a...
2
321
by: JohnR | last post by:
Wow, this is unbelieveable. I've narrowed it down to a few lines of code. Create a new project in VB.NET and put 2 buttons on it (a FBD button and an EXIT button) and enter these lines for the...
4
2361
by: Alex Maghen | last post by:
Does a call to Response.Redirect result in an immediate exit from the current page function (i.e. a "return()")? I want to make sure that the statements after the Response.Redirect() do not get...
3
1754
by: caston | last post by:
Well, everybody can now agree with the fact that the Ajax hype is over. Still multiple Ajax Frameworks are flourishing, aren't they? So, last night I questioned myself with the following: "When...
28
10226
by: kaleolani65 | last post by:
I have been having an ongoing problem with a DB at work concerning people getting "locked out". Access warnings relating to "exclusive" mode The research I have done and the replies received...
5
3191
by: BA | last post by:
Hi there I am trying to write an "application" in Access 2000, that displays a front end and allows the user to interact with the database without seeing Access loaded, in the background, nor on...
2
6465
by: jahanas | last post by:
Private Sub txtBox1.txtLife_Enter(ByVal frmQuote) Handles txtLife Me.txtQuote.Text = "I like life, it's something to do." End Sub Private Sub txtBox2.txtFuture_Enter(ByVal...
0
7199
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,...
0
7274
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
6984
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
5576
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,...
1
5005
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...
0
4670
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
3151
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
732
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
377
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.