How to hide opened custom forms when ArcMap application lose focus...

945
2
Jump to solution
10-25-2012 11:55 AM
EtienneDesgagné
New Contributor
Hello,

    I have some VB.Net forms that users can open by clicking on a custom toolbar in ArcMap (9.3). These forms are setted to be "topMost" to always stay over the map. The problem is that if user switch to another Windows application on his desktop without minimizing ArcMap first, these forms are still visible and it is certainly not very convenient for the users...

Any suggestion on how to force these forms to hide when ArcMap application lose focus?

Thanks a lot
0 Kudos
1 Solution

Accepted Solutions
KenBuja
MVP Esteemed Contributor
Take a look at this thread, which gives a couple of examples of some code how to do that. When I use this in an application with an open form, minimizing ArcGIS will also minimize the form, and I don't have to use the "topMost" setting.

View solution in original post

0 Kudos
2 Replies
KenBuja
MVP Esteemed Contributor
Take a look at this thread, which gives a couple of examples of some code how to do that. When I use this in an application with an open form, minimizing ArcGIS will also minimize the form, and I don't have to use the "topMost" setting.
0 Kudos
EtienneDesgagné
New Contributor
Removing the "topMost" setting effectively solve my problem... Thanks a lot

Etienne
0 Kudos