Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 324751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T09:09:10+00:00 2026-05-12T09:09:10+00:00

I want the user to simply be able to exit my application. However, for

  • 0

I want the user to simply be able to exit my application. However, for some reason, code which I have on a time delay, controlled by a stopwatch, is still trying to execute. I do not care if it tries to do so or not, but I want to stop the error and force-quit the application, terminating ALL running threads where they stand.

I am using Visual Basic Express 2008 with SP1, and I am coding in vb.net, this is a WinForm application.

I have tried simply closing the forms with Formname.Close() and I also tried Application.Exit(). I even tried an If Then statement which exited the thread which referenced my textbox, quitting it with Application.ExitThread()

I got:

ObjectDisposedException was unhandled

Cannot access a disposed object. Object name: ‘TextBox’.

How can I handle this exception or simply finish exiting?

Thanks for the help!

EDIT: To clarify, I don’t care how this is achieved, I just want the application to stop running, and have no errors occur.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T09:09:11+00:00Added an answer on May 12, 2026 at 9:09 am

    can you shut off the stopwatch before you exit?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We want to do some fairly simple analysis of user's C++ code and then
I simply want the user to be able to draw on the screen with
I have a gridview that contains data. I want the user to be able
So all I want to do is simply find a user control I load
I want a simple sign in app in which a user logins successfully if
Basically I have a site where I want the user to input something, have
So suppose I have two Models -- Project and Task I want user to
So I have this list of option values, and I want a user to
I have two projects, a resourcelibrary which holds a xaml file that simply has
I have this code which gets the contents from a mysql databse. So basically,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.