473,657 Members | 2,604 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

FolderBrowserDi alog 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(B yVal sender As System.Object, ByVal e As
System.EventArg s) Handles btnExit.Click
End
End Sub
Private Sub btnDoFBD_Click( ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles btnDoFBD.Click
Dim fbd As New FolderBrowserDi alog
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 FolderBrowserDi alog
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 1568
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******@hotma il.com> wrote in message
news:1mA9e.3074 2$nH4.15246@trn dny05...
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(B yVal sender As System.Object, ByVal e As
System.EventArg s) Handles btnExit.Click
End
End Sub
Private Sub btnDoFBD_Click( ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles btnDoFBD.Click
Dim fbd As New FolderBrowserDi alog
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
FolderBrowserDi alog
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******@hotma il.com> wrote in message
news:28E9e.1424 0$ha3.13408@trn dny02...
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******@hotma il.com> wrote in message
news:1mA9e.3074 2$nH4.15246@trn dny05...
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(B yVal sender As System.Object, ByVal e As
System.EventArg s) Handles btnExit.Click
End
End Sub
Private Sub btnDoFBD_Click( ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles btnDoFBD.Click
Dim fbd As New FolderBrowserDi alog
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
FolderBrowserDi alog
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
30248
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 <joined_table> Explanation: A syntax error in the SQL statement was detected at the specified token following the text "<text>". The "<text>" field indicates the 20 characters of the SQL statement that preceded the token
3
18254
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 after the bracket and continues loading the form. Here's my snippet: DalMan._drCurrentUser = DalMan._dtUsers.FindByUserName("Init"); if (DalMan._drCurrentUser == null)
0
3735
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 process? I know about process.Kill and process.CloseMainWindow, but how would I do the equivalent of "End Process Tree" where any child or associated processes are also killed? How do you know what processes are considered to be part of the...
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 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
4
2367
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 called. Alex
3
1768
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 Ajax Frameworks will be gone? What is required to get rid of them and start using browsers?" (To be more precise, I should probably also mention what kind of frameworks do i mean. These are: Dojo, BackBase, Qooxdoo etc.) I've got an answer that I...
28
10245
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 suggest I split the DB (front-end/back-end). A working copy of the DB was split and I can see how the DB (back-end) is being updated. Being such an Access noob (who did not actually build the DB) I don't know what people mean exactly when...
5
3204
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 the taskbar. When I click on the generate report button, from the front-end's form, no report/query is displayed. However, if i disable the code that "hides" Access, the reports and queries work perfectly. How do I get this functionality...
2
6482
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 frmQuote) Handles txtFuture Me.txtQuote.Text = "The future isn't what it used to be." End Sub Private Sub txtBox3.txtTruth_Enter(ByVal frmQuote) Handles txtTruth Me.txtQuote.Text = "Tell the truth and run."
0
8385
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
8303
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,...
0
8723
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
8602
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...
1
6162
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
5632
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
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
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
1601
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.