Click here to Skip to main content
15,886,802 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,
I'm working on a VB.Net project where in part of it I catch a pop up message box when it's displayed and handle it in some way.
My problem is that I have to know what buttons are included in this pop up window (their captions mainly).
Is this possible? Can someone please tell me how this can be done? A sample would be much appreciated.

Thanks.
Posted
Comments
nilesh sawardekar 13-Jul-14 3:36am    
please explain in brief..

1 solution

Well, buttons are nothing but more windows. You just look for more child windows of the message box window you found.

You can NOT just get the handle from a window and then try to cast it to a Form object and expect all the properties to work. It just doesn't work that way.
 
Share this answer
 
Comments
saleem_deek 13-Jul-14 9:37am    
Thank you for clarifying this for me.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900