29th November 2005, 12:54 PM
I don't know VB at all, but just a general programming tip:
You have to be careful what you set frmxx.height to. If it is 0 (or you didn't give it any value, it is probably initialized to 0, but VB may be wierd...), you are fine. But if you set it to some other value, say 500 (or any other number that is not divisible by 200), your program will be in an infinite loop and that is probably enough to kill VB. Does that make sense? If not, I'll explain.
A better practice would be to test for frmxx.height >= 5000, break the loop when you find that, and then explicitly set frmxx.height to 5000. There are a lot of other options as well, depending on your desired functionality.
And I successfully posted a comment about VB without making any derogatory comments. Amazing. Unless that counts as one...
You have to be careful what you set frmxx.height to. If it is 0 (or you didn't give it any value, it is probably initialized to 0, but VB may be wierd...), you are fine. But if you set it to some other value, say 500 (or any other number that is not divisible by 200), your program will be in an infinite loop and that is probably enough to kill VB. Does that make sense? If not, I'll explain.
A better practice would be to test for frmxx.height >= 5000, break the loop when you find that, and then explicitly set frmxx.height to 5000. There are a lot of other options as well, depending on your desired functionality.
And I successfully posted a comment about VB without making any derogatory comments. Amazing. Unless that counts as one...