I tried that Mark, and for some reason CTRL+F10 does nothing in my app at all now. I am back to square one now. Everything works except that the form and the report preview is not maximized again. It all works in the test.prg I posted but not in my app and I even removed the ON KEY LABEL CTRL+F10 assignment in the main program and verified that it is not set anywhere else....I stepped through it in the debugger and set a breakpoint on: ON('KEY LABEL','CTRL+F10')
>lcOldValue = ON('Key', 'Ctrl+F10')
>on key label Ctrl+F10
>KEYBOARD '{CTRL+F10}'
>on key label Ctrl+F10 &lcOldValue
>
>>Well, everything worked in testing using the example prg I posted. However, in my app, CTRL+F10 is reassigned (silly me, I forgot about that) so KEYBOARD... does not work. Also, it is a class so there is no Data Environment. I have to find another workaround it appears. Does any other keyboard combination have the same effect as the default CTRL+F10? ZOOM WINDOW ... you provided below does not work because the window 'Report Designer' does not exist.
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"