CodedK
asked on
Un focus
Hi.
Is there a way to unfocus my form with the press of a button ?
Is there a way to unfocus my form with the press of a button ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
So what do You need?
ASKER
OnButtonClick there is a popup message that is unfocused. I thought that if i remove focus from
my form before the popup occur the popup window will have focus... but this doesnt work.
I used it like this :
OnButtonClick
SetActiveWindow(0)
PopupMessage
SetActiveWindow(0)
Not only the popup didnt gain focus but i have to call redraw for the form.
my form before the popup occur the popup window will have focus... but this doesnt work.
I used it like this :
OnButtonClick
SetActiveWindow(0)
PopupMessage
SetActiveWindow(0)
Not only the popup didnt gain focus but i have to call redraw for the form.
ASKER
I cant use SetForeGrounwindow for the popup since it is a dialog and doesnt have any handle.
ASKER
Thanks.