preventing from form opening a form twice

Hi all,

Can anyone please give a solution how to prevent a form from opening if the same form is in open already, the form is opened using menuitembutton in ax 2009. Please suggest an answer please.

Thanks in advance,

Gopinath.M

You can make it modal form, so that nothing can be done until the form is closed.
Or when the form is opened save its details in cache ,clear the cache when the form is closed and while opening the form check if the something exists in cache.

Hi Kranthi can you give me an example on both this case for code example to have a better idea please if possible.

Thanks in advance,

Gopinath

blogs.msdn.microsoft.com/…/
msdn.microsoft.com/…/aa635287(v=ax.50).aspx