Screen Size Issues
Posted on 2011-10-05
Using VB.Net 2010 (Pro)
I have an interesting issue that has cropped up.
In my application, when the app shuts down (in the main form's Form_Closing event), I save the position of the form. The next time the app starts, the setting are read and the form is (supposed to be) returned to it's last location.
However, occasionally, I will get a report that someone has started the app, but the form is not showing. The task bar button is visible, but it seemingly does nothing when it's clicked. After pulling on my hair for a few weeks, I finally looked at the settings XML file and saw that the top and left positions were being saved as -32000 for each. Once I deleted the Top and Left settings, the app worked again no prob.
So what might cause this?
A couple of points that may be significant...
1. This is intermittent.
2. The engineers who use my app all have dual-monitor set-ups