Seb33300 Power User

Joined: 07 Feb 2006 Posts: 63 Location: France
|
Posted: Thu Mar 16, 2006 7:28 am Post subject: Problem with a macro closing a form |
|
|
I make severals "menu" forms wich can be opened and closed clicking on a buttom
but sometimes when a I click on a PushButton to close a form, it close it but I got the message :
| Quote: | | Owner instance already closed. Call was rejected ! |
My macro to close a form is :
| Code: | sub FermerFenetre
oFrame = StarDesktop.getCurrentFrame() ' current Frame
oFrame.dispose() ' close Frame
end sub |
It's only when I try to close a form opened by another form (clicking a pushbuttom) that the message apear |
|