0

I have a windows forms program which saves properties like its size, location, splitter bar locations &c in a properties file in hte usual way. I've noticed that whenever I close the application by right clicking on its taskbar icon and choosing 'close window', these properties don't save correctly and my application then either won't start or starts with size 0 or something.

Of course I can catch these problems and hack around them, but I would like to know what is different between closing via the form and via the taskbar, so I can handle the appropiate events.

Sriram Sakthivel
  • 72,067
  • 7
  • 111
  • 189
Mr Pie
  • 327
  • 2
  • 11

1 Answers1

1

As the first commenter to recommend the use of Form.Closed, I'm demanding my ransom money! :-)

RenniePet
  • 11,420
  • 7
  • 80
  • 106
  • OK, my choice of words now seems a bit unmotivated. The OP had previously posted his own answer saying that Form.Closed worked for him, and thanking all who had helped. – RenniePet Aug 12 '14 at 15:10