How to activate the application which is minimized in task bar?
-
Hi, I written a form application which is needed to activate when it receives a event from a hook procedure. the hook procedure sends the WM_COPYDATA message to my forms app. When I receive this message from hook I want my form app to be activated and shown to window. In the event handler of the message I tried to set the visible property of form to true, but it didn't work. Also Focus returns false. How can I cahive this activating of application upon receiving the event? Regards, Hemant Kulkarni
-
Hi, I written a form application which is needed to activate when it receives a event from a hook procedure. the hook procedure sends the WM_COPYDATA message to my forms app. When I receive this message from hook I want my form app to be activated and shown to window. In the event handler of the message I tried to set the visible property of form to true, but it didn't work. Also Focus returns false. How can I cahive this activating of application upon receiving the event? Regards, Hemant Kulkarni
-
Hi, I written a form application which is needed to activate when it receives a event from a hook procedure. the hook procedure sends the WM_COPYDATA message to my forms app. When I receive this message from hook I want my form app to be activated and shown to window. In the event handler of the message I tried to set the visible property of form to true, but it didn't work. Also Focus returns false. How can I cahive this activating of application upon receiving the event? Regards, Hemant Kulkarni
Hello
Hemant kulkarni wrote:
I written a form application which is needed to activate when it receives a event
How did you Deactivate your form?? Reverse it! Regards:rose:
-
How about: WindowState = FormWindowState.Normal; or WindowState = FormWindowState.Maximized;
hi, I tried this, but the form is not shown as active application, so this normal or maximized state doesn't affect Thanks and Reagrd Hemant.
-
hi, I tried this, but the form is not shown as active application, so this normal or maximized state doesn't affect Thanks and Reagrd Hemant.
-
Form.BringToFront() ?
"One of the Georges," said Psmith, "I forget which, once said that a certain number of hours' sleep a day--I cannot recall for the moment how many--made a man something, which for the time being has slipped my memory."
Hi, This doesn't work, it just shows the icon on task bar blinking Thanks & Regards, Hemant
-
Hello
Hemant kulkarni wrote:
I written a form application which is needed to activate when it receives a event
How did you Deactivate your form?? Reverse it! Regards:rose:
Hi, I minimized it by clicking the minimize box, but now I want it to be activated when user presses f12 key which I handle in a Windows hook Thanks & Regards Hemant.
-
Hi, I minimized it by clicking the minimize box, but now I want it to be activated when user presses f12 key which I handle in a Windows hook Thanks & Regards Hemant.
Hello If that's it then just like stancrm told you
WindowState = FormWindowState.Normal
should work! If not, try to addActivate()
after it.Hemant kulkarni wrote:
when user presses f12 key which I handle in a Windows hook
I thought WinXP doesn't allow anybody to hook the F12??!! Strange! Regards:rose: