Force to close MessageBox programmatically
Let me give you the background. We have an Application(medium sized) that is using MessageBox.Show (....) at various places (in hundreds). These message boxes are part of workflow and being used for informing,warning or taking input from an user. Application is supposed to automatically log off after certain time if there is no activity. We have a requirement that while logging out the application, just to clean the session data , to clear views and to hide itself so that in next launch, it won't have to execute the startup process which is costly in terms of time. Everything is working fine