>>>>UPDATE. There is a custom (my) code in the method RESIZE. The code in this methods set the .Width of the grid.
>>>>I need to "catch" it before it gets too small.
>>>
>>>Why not just set some minimal width?
>>>
>>>this.width=max(40, tnNewWidth)
>>
>>I will try this. Thank you.
>
>The 40 is an example here, I don't really know what the actual minimal width is, you'd have to find this by trial and error, or search (and I think just testing it by binary chop would be faster).
I just tried the above suggestion with 100 and it works. That is, the grid becomes invisible, when I resize the form. No error message (which is the goal hear).
I will try some other numbers. But I think - guess - that as long as the number is greater than 0, the error will not happen.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham