Click here to Skip to main content
15,914,488 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a button that displays an OpenFileDialog window, what I need to do is to close this window once the user closed the container window, because when the user closes the container window, the OpenFileDialog window persists.
Posted
Updated 27-Sep-10 5:59am
v2

1 solution

OpenFileDialog only has ShowDialog() (Visual Studio 2010, 2008, 2005) so it cannot persist as the user cannot close the container app. Earlier versions may need you to use ShowDialog() when opening the OpenFileDialog.
 
Share this answer
 
v2

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