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 2 1527
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
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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
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...
| |