Searching not working on BrowseDialog


Author
Message
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.4K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
I was playing around with the BrowseDialog and decided to try and show the BrowseDialog before the form shows. I just put a call in the form's load event and it worked great.



However, if the form is an MDI form, when I click on the Search button on the browse dialog, it just hangs.



If the form isn't an MDI child form (MDIParent property set), this works great. On the MDI form, if I just open the form, then use the browse button on the MaintenanceFormToolstrip, it works great. Not sure if this is a bug or if I don't have something configured correctly. Knowing that this might be a bit hard to understand, I'm attaching a sample solution. It has three projects within it. Two are EXE projects, to show the differences. Follow these steps after unzipping it:



TO DEMONSTRATE NON-MDI

1. Open the solution.

2. Select the top project, "BrowseDialogFormOpenTest". If it isn't already, make it the startup project.

3. Hit F5 to run, select strataframesample db.

4. Click on View Customers, browse dialog is shown

5. Click on Search, searching windows is shown, then results appear

6. Click on OK, Customers form is shown loaded with data...Great, exactly what we wanted.



TO DEMONSTRATE MDI IS NOT WORKING

7. Select the bottom project, "MDIClientTest". If it isn't made the startup project, do so now.

8. Hit F5 to run, again select strataframesample db.

9. Click on View Customers, browse dialog is shown.

10. Click on Search. Nothing happens. App is unresponsive. Oops, something isn't working.

11. Alt-Tab to Visual Studio, stop app via debugger.



TO DEMONSTRATE NON-FORM LOAD METHODS WORK

12. Hit F5 to run again.

13. Click on View Customers, browse dialog is shown.

14. Click on Cancel, the customers form is shown, with no data.

15. Click on Browse, browse dialog is shown.

16. Click on Search, searching windows is shown, then results appear.

17. Click on OK, customers form is shown, loaded with data.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Greg McGuffey - 16 Years Ago
Greg McGuffey - 16 Years Ago
Charles R Hankey - 16 Years Ago
Trent L. Taylor - 16 Years Ago
                 I love those simple fixes :hehe:
Edhy Rijo - 16 Years Ago
                     Me too :D ... or at the very least...when it is not my fault :P
Trent L. Taylor - 16 Years Ago
                         [quote][b]Trent L. Taylor (12/19/2008)[/b][hr]Me too :D ... or at the...
Edhy Rijo - 16 Years Ago
                             Oh, I blame Dustin all of the time....and I have no problem blaming...
Trent L. Taylor - 16 Years Ago
Greg McGuffey - 16 Years Ago
Trent L. Taylor - 16 Years Ago
Edhy Rijo - 16 Years Ago
Charles R Hankey - 16 Years Ago
Keith Chisarik - 16 Years Ago
Greg McGuffey - 16 Years Ago
                 Edhy! sh sh sh sh... I'm hiding. :P
Ivan George Borges - 16 Years Ago
Trent L. Taylor - 16 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search