You should have one READ EVENTS in your MAIN.PRG and then a CLEAR EVENTS in your application shutdown code.
>I have always avoided Modeless Forms because I have found them unstable.
>
>I am now in a situation where I must use a Modeless Form and here I am again.
>
>I have a READ EVENTS as the last line of the Init which works fine.
>
>Now I have a FINISH Button and at the end the of the Click Event of the FINISH button I say CLEAR EVENTS just before THISFORM.RELEASE()
>
>For some reason, I have to click FINISH twice in order to get the form to release.
>
>Am I allowed to have a CLEAR EVENTS inside a Click Event? Is there somewhere else that I should be writing the CLEAR EVENTS command? Any help would be most appreciated.
>
>Mike Smith
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer