show/hide detection
-
hello, un have 2 application and i send messages between them using named pipes technologie; i send 2 messages , the first for showing the application and the second for hiding it; the probleme is before sending the messages i have to know the state of application (show/hide). how can i know the state of my second application?:confused:
-
hello, un have 2 application and i send messages between them using named pipes technologie; i send 2 messages , the first for showing the application and the second for hiding it; the probleme is before sending the messages i have to know the state of application (show/hide). how can i know the state of my second application?:confused:
You'll need a method that queries the state of the second application.
Deja View - the feeling that you've seen this post before.
-
You'll need a method that queries the state of the second application.
Deja View - the feeling that you've seen this post before.
whitch method do you talking about? i can figure out please help :doh:
-
whitch method do you talking about? i can figure out please help :doh:
-
A method which you have to write in order to figure out the state of the application ! :)
AliAmjad(MCP) First make it Run THEN make it Run Fast.
i m so sorry, but i dont understand what do you mean, i want to know can i know the state of a dialog or application (hide/show) ? if yes , how? thanks
-
i m so sorry, but i dont understand what do you mean, i want to know can i know the state of a dialog or application (hide/show) ? if yes , how? thanks
This is easy. Create a method that checks if the form is visible or not. (Hint: use the
Visible
property)Kristian Sixhoej
"Any fool can learn from his own mistakes, but a wise man learns from mistakes of others"
-
i m so sorry, but i dont understand what do you mean, i want to know can i know the state of a dialog or application (hide/show) ? if yes , how? thanks
Check to see if the form is visible.
Deja View - the feeling that you've seen this post before.
-
Check to see if the form is visible.
Deja View - the feeling that you've seen this post before.
i want to know if is visible from another application not the same application i hope that now that s is more clear
-
i want to know if is visible from another application not the same application i hope that now that s is more clear
Morad SAJID wrote:
i want to know if is visible from another application not the same application i hope that now that s is more clear
How can I put this simply? If you want to know if application B is visible or not, then application A is going to have to query it and ask it if it is visible or not. Hence, application B will have to provide this information. That's what we've been telling you all along. There's no easy way for the first application to know this - it's the responsibility of the second app to tell it.
Deja View - the feeling that you've seen this post before.
-
hello, un have 2 application and i send messages between them using named pipes technologie; i send 2 messages , the first for showing the application and the second for hiding it; the probleme is before sending the messages i have to know the state of application (show/hide). how can i know the state of my second application?:confused:
I would have the application that shows/hides create a named
Mutex
when it is visible. It can release theMutex
when it gets hidden. The calling app can try and create the same namedMutex
and if it fails, it knows the application is visible. If it succeeds, it releases theMutex
and knows that the application is hidden. -
Morad SAJID wrote:
i want to know if is visible from another application not the same application i hope that now that s is more clear
How can I put this simply? If you want to know if application B is visible or not, then application A is going to have to query it and ask it if it is visible or not. Hence, application B will have to provide this information. That's what we've been telling you all along. There's no easy way for the first application to know this - it's the responsibility of the second app to tell it.
Deja View - the feeling that you've seen this post before.
yes thank you i have an idéa but i don't know if it will be works; i ll change the process name of the application A, the application B will looking for the first name of application A , when it will not find it it will know that my application is hided, but how to change the processname of my application; thakks again