Today I was fixing few Windows forms. There few problems that usually should be easy to fix. However in this case none of direct approaches worked. After few attempts I found that there is a logic in a form Closing event, also in OnHandleDescroyed(). As if it was not enough, there was a secret order of calls to initialize the form. After direct approach failed, I reverted all changes and started refactoring the code to simplify internal relations, move code out of the form into custom controls... At the end the all main problems were fixed and I am preaching everybody not to program like that.
http://blog.asolofnenko.cjb.net/c\/trackback.php/147
No Comments/Trackbacks for this post yet...
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
| << < | ||||||
| 1 | 2 | |||||
| 3 | 4 | 5 | 6 | 7 | 8 | 9 |
| 10 | 11 | 12 | 13 | 14 | 15 | 16 |
| 17 | 18 | 19 | 20 | 21 | 22 | 23 |
| 24 | 25 | 26 | 27 | 28 | 29 | 30 |
| 31 | ||||||