A customer wanted a way to determine whether a particular
window is modal. They listed a few methods they had tried
but found that it didn't work and asked for assistance.
As Eric Lippert
is fond of saying,
"First, write your spec."
Until you know what you want, you won't know how to get it.
First, you need to define what you mean by a ...