I have 2 Forms.

"Form1" has a menu. "Form2" is shown modally. I also have a tray icon representing the application.

Here is my problem.

Since "Form2" is shown modally - whenever i try to popup the menu from "Form1" via tray icon i get error. That's normal.

Until now i have been putting some String into "Form2" Tag property so i knew it was shown modally. This works fine.

However, i am interested if there's some other, more "official" way to find out if some Form is shown modally?

Thanks

-gav