Link to home
Start Free TrialLog in
Avatar of vinhnl
vinhnl

asked on

Send Message ENTER to a Dialog

Hi Experts

My machine uses WinXP. I have a dialog 'About' with a button 'OK' show on the sceen. I want to program a app (C#) send a message ENTER to this dialog to Close the dialog
How to do this?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of WebSpecials
WebSpecials

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of vinhnl
vinhnl

ASKER

But the dialog isn't in the application
that doesnt matter...

thats a global keyboard hook... you can use it everywhere... it just emulate a key press in the active window your working in...

mfg WebSpecials
Avatar of vinhnl

ASKER

yes. but maybe this form isn't active.
Avatar of vinhnl

ASKER

thanks WebSpecials. You are correct!