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
215 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 200 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

856 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