>>>I have been using your Grid Highlighter Class for some time and have been very happy. Everyonce in a while I get into a situation where I will error message come up when destroying a form. Simply by bringing the class or the grid to the foreground or putting one in the background solves the issues.
>>>
>>>Well I have been beating my head against a the wall today with the following situation.
>>>
>>>I have a form with 4 grids on with 2 of the grids using the highlight class. Depending on the sequence of controls getting the last focus and destroying the form, I have been getting either
>>>
>>>(1) No Erros
>>>(2) Error - "Property Grid# is not found expression is not valid outside with/end" followed by other errors in releasing form
>>>(3) Error - "Expression is invalid Use a valid expression for dynamicForeColor property" followed by other erros in releasing form
>>>
>>>I tried all kinds of foreground and background settings with out success.
>>>
>>>The only way I have found to make it work is in the QueryUnload is to set focus to one of the grids before releasing.
>>>
>>>Do you have any suggestions on why or what I am possibly doing wrong?
>>>
>>>Thanks in advance
>>
>>Hi Ronald,
>>
>>Could you send me your form with all related files and specify the sequences to reproduce?
>>
>>#2 typically should be resolved by changing the ZOrder. I would like to take a look to this particular situation.
>
>
>Hi Nick:
>
>Could you include me in your response. Would like to know what ensues. Thanks.
>
>- Ravi
Sure, I will post an update.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison