17th December 2005, 4:32 PM
(This post was last modified: 17th December 2005, 4:43 PM by etoven.)
The solution as I found it is to use a timer control.
Hope this helps....
- create a timer control on the form
- I set it to fire every 1 sec by setting its interval value to 100 (1ms * 100ms per sec = 1 Sec)
- In side the timer code:
- if the condition: frmxx.height <= DESIRED HEIGHT then
- frmxx.height = frmxx.height + 1
- if the condition: frmxx.height <= DESIRED HEIGHT then
- The form load event takes place before the actioul form is drawn so any change to the form size will not been seen until the first form paint event, which is not fired until after form load.
- pause = 50000 does not have the efect of pausing the event hander instead it creates a varable called pause and gives it a integer value of 50000.
Hope this helps....