I test the code also, I notice sometime the [toControl] is not an object(show as .F. in the debugger), to overcome the problem, I just add some code to detect when [toControl] is not an object, then just don't run those resize code, see the example below.
Hmmm. This is very interesting because the code that I posted was from a class in an old production application and the client has never complained of a problem. I just re-tested with a form that contained a pageframe with 2 pages, an option group, a combo box, a list box, a command group, a command button and 2 grids. The code worked flawlessly.
Did you have something else on your form that is not in the list above?
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only