>Evan,
>Thanks so much
>I knew it had to be a better way of doing it.
>it work like a charm.
Word of warning. I implented that same code for a version of my software and received many many complaints from users who would try to close the preview window via the X in the upper righthand corner and would miss the mark and close the app (and get asked several questions on saving data, are you sure you want to quit, etc..) So what I did was when a preview is called for and expanded like that then the application close X is disabled. This satisfied all the critics and was implemented in the next release. Most of my users are over 40 and not as mouse efficient as VFP developers..
My two cents.
Bret Hobbs
"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope