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

  • SEARCH
  • Home
  • 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 419919
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T18:49:30+00:00 2026-05-12T18:49:30+00:00

I have a .NET 2005 (C#) desktop application, in which there is a login

  • 0

I have a .NET 2005 (C#) desktop application, in which there is a login form and an MDI form, which then have multiple subforms. All other forms are opened in MDI form only.

After a user logs in, I hide the login form and then show the MDI form, but when I close the MDI form, my application process does not end because the login form is still hidden. I want that, when the user closes the MDI form, the whole application should close (essentially, the process should not be shown in the task manager), because if everytime the user closes and reopens the application and logs in, it will create some performance problem.

I am doing something like below:

//my login validation script,

//after successful login

this.Hide();

if (globalData.ObjMdiMain.IsDisposed)
{
    globalData.ObjMdiMain = new mdiMain();
}
globalData.ObjMdiMain.Show();

globalData is my static class where I create global objects which are required by the whole application. There, I have defined the ObjMdiMain object of my MDI form and I am accessing it here in the login form.

So, is there any method or function which will end the whole process from system, something like “Application.End();” or something else?

Thanks!

  • 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-12T18:49:30+00:00Added an answer on May 12, 2026 at 6:49 pm

    It seems a MySql .net connector bug, because I was using mysql .net connector DLL to connect to my mysql db. I have seen some other complains about it too. See
    http://bugs.mysql.com/bug.php?id=36688

    I was using MySQL .net connector DLL of version 5.1, I have just upgraded to 6.1 (latest) and its working fine without any error.

    Download the latest DLL here: http://dev.mysql.com/downloads/connector/net/6.1.html

    Thanks

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

Sidebar

Related Questions

I have a class which implements UserControl. In .NET 2005, a Dispose method is
I know there have been questions in the past about SQL 2005 versus Lucene.NET
Currently I'm tasked with doing the daily build. We have an ASP.NET 2005 website
I have a .net transaction with a SQL insert to a SQL Server 2005
This is a strange one... In a windows forms app (VB.NET/VS 2005) I have
I have an ASP .NET 2.0 website connected to a SQL Server 2005 database.
I have a Visual Studio 2005 solution (.sln) with a mix of .NET and
I have an existing ASP.NET 2.0 website, stored in Team Foundation Server 2005. Some
I have an SQL Server 2005 server, and I'd like to run a .Net
If I have .Net Form with a component/object such as a textbox that I

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.