?
Solved

Showed a modal dialog, clicked on a button to bring up a file dialog and the modal dialog closes (??)

Posted on 2006-11-23
2
Medium Priority
?
241 Views
Last Modified: 2010-04-23
I have a VB.NET app where I have a model dialogue (f.showDialog()).  Inside the modal dialog, I have a button that brings up an open file dialog.  When I click the button and select the file, the modal dialog closes.  Why?  How do I fix this?
0
Comment
Question by:stev0931
2 Comments
 
LVL 10

Accepted Solution

by:
Kinger247 earned 800 total points
ID: 18004062
Is the button marked as the Acceptbuttom or CancelButton on the form ?
If so, take that off.

A quick answer would be to take off the button and re-add it.
Try that and see if it makes a difference.
0
 

Author Comment

by:stev0931
ID: 18004081
It worked - thanks!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question