Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 16044

How to remember form size and position when program shuts down while minimized?

$
0
0
Hi:

I have a vb.net 2019 winforms application that is designed to run in the systray. During program shutdown, it saves form size and position to a config file. If I have the window open and shut the program down, there is no problem. But when the program shuts down while minimized. the form size and position are bizarre numbers.

Any ideas on how to get the "Windows state = Normal" numbers while the form is minimized?

Thanks!!!

Viewing all articles
Browse latest Browse all 16044

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>