Child window resize problem
Posted on 2008-10-10
I'm converting my app from VB6 to VB2008. It starts with the first child window open in the MDI window. When I click on a button, I pass the top, left, width and height to the second child window Form_Load and it opens in the exact place of the first window and the first is unloaded. If I go back to the first, the reverse happens perfectly.
Now I'm trying to do the same with the next window using the same method in the Form_Load. But it opens with different top, left, height and width. I cannot figure where it is getting the new dimensions from. At the end of Form_Load, the dimensions are good. Then I put a breakpoint at the beginning of Form_Activate and the dimensions have changed.
One thing I loath about .NET is that single step really doesn't work. Without setting breakpoints at every procedure, I cannot figure out how to follow the flow of the program. If you don't know the sequence of flow in the program, how are you supposed to write code with predictable behavior?