Hi
I am developing a windows application in which it contains a grid. on double clicking a row on the Grid it shows all the details about that row in a new form.

If i double click the same row or other row it opens the details of respective row again in a same form.

For this i followed one logic. I take a global variable (public boolean X= false) and i am setting it true when user double clicks a row. I am resetting it in the child form. Here the value is not resetting.

What i want is Is there any mechanism or statements of code to preventing the form from openning more than one form at a time.

Please Help me.

Thanks in Advance.

Ramu Medida.