﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WinForms (How do I?)  » BrowseDialog Search freezing issue</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Wed, 27 May 2026 20:35:31 GMT</lastBuildDate><ttl>20</ttl><item><title>BrowseDialog Search freezing issue</title><link>http://forum.strataframe.net/FindPost15591.aspx</link><description>I added a custom browse dialog &lt;FONT color=#008000&gt;frmCustomersMaintenanceBrowseDialog &lt;/FONT&gt;&lt;FONT color=#1f5080&gt;and it works perfectly if I have the CustomerMaintenance form appear first, then have the user click on the BROWSE button on the Maintenance Toolbar. BUt I want the Browse Dialog to appear first so I added the following to the frmCustomersMaintenance_Load event:&lt;/FONT&gt;&lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;private&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;void&lt;/FONT&gt;&lt;FONT size=2&gt; frmCustomersMaintenance_Load(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;object&lt;/FONT&gt;&lt;FONT size=2&gt; sender, &lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;EventArgs&lt;/FONT&gt;&lt;FONT size=2&gt; e)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;this.frmCustomersMaintenanceBrowseDialog.ShowDialog();&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;This does bring up the Browse Dialog first, but when the user clicks SEARCH, the screen freezes. I am not doing any out of the ordinary with the BO.&lt;/P&gt;&lt;P&gt;Is there something else I need to do. What might be helpful is if you code tell me how I could bring up a messagebox showing me the SELECT statement just before it is executed? Or the Connection Striing? I already read the other parts of the forum on screen freeze but they do not seem to help with the issue.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Mon, 14 Apr 2008 16:58:23 GMT</pubDate><dc:creator>Ross L. Rooker, Sr.</dc:creator></item><item><title>RE: BrowseDialog Search freezing issue</title><link>http://forum.strataframe.net/FindPost15617.aspx</link><description>That behavior I couldn't reproduce....it worked fine when I ran it.&amp;nbsp;</description><pubDate>Mon, 14 Apr 2008 16:58:23 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: BrowseDialog Search freezing issue</title><link>http://forum.strataframe.net/FindPost15614.aspx</link><description>That works 100 percent better, but when you close the CustomerMaintenance form with the red X in the top right corner, the browse dialog appears and you need to CANCEL it on the CANCEL button. If you know what needs to be twaeked to have the form close without the browse coming up, then this solution work be PERFECT for everyone wanting to do this.</description><pubDate>Mon, 14 Apr 2008 15:17:35 GMT</pubDate><dc:creator>Ross L. Rooker, Sr.</dc:creator></item><item><title>RE: BrowseDialog Search freezing issue</title><link>http://forum.strataframe.net/FindPost15611.aspx</link><description>You could also overwrite the OnParentChanged method and the form will not have been shown yet....and you wouldn't have to write your own MDI environment :)&lt;/P&gt;&lt;P&gt;[codesnippet]Overrides Protected Sub OnParentChanged(...)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyBrowseDialog.ShowDialog()&lt;BR&gt;End SUb[/codesnippet]</description><pubDate>Mon, 14 Apr 2008 14:41:16 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: BrowseDialog Search freezing issue</title><link>http://forum.strataframe.net/FindPost15609.aspx</link><description>[quote]This may be something you want to change in the framework in the future to have a setting that would allow the browse dialog to appear first as an option. [/quote]&lt;/P&gt;&lt;P&gt;Not a framework issue...it's a .NET issue.&amp;nbsp; This is because of the MDI form logic.&amp;nbsp; If you want to get around this then you can create your own MDI environment.&amp;nbsp;</description><pubDate>Mon, 14 Apr 2008 14:39:00 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: BrowseDialog Search freezing issue</title><link>http://forum.strataframe.net/FindPost15606.aspx</link><description>This worked. Wish that the actual form would not be visible before the Search Dialog appeared. This may be something you want to change in the framework in the future to have a setting that would allow the browse dialog to appear first as an option.</description><pubDate>Mon, 14 Apr 2008 14:26:55 GMT</pubDate><dc:creator>Ross L. Rooker, Sr.</dc:creator></item><item><title>RE: BrowseDialog Search freezing issue</title><link>http://forum.strataframe.net/FindPost15599.aspx</link><description>There is something else trying to manage the window handle which is causing a nesting issue since the MDI&amp;nbsp;owner hasn't been fully updated yet.&amp;nbsp; This is common when using an MDIClient.&amp;nbsp; Just override the OnShown method and place your code there.&amp;nbsp; At this point the forum will be fully instantiated and belong to the MDI container...thus removing the stack overflow.</description><pubDate>Mon, 14 Apr 2008 13:21:43 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: BrowseDialog Search freezing issue</title><link>http://forum.strataframe.net/FindPost15598.aspx</link><description>Here is what I used:&lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;protected&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;override&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;void&lt;/FONT&gt;&lt;FONT size=2&gt; OnCreateControl()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;this&lt;/FONT&gt;&lt;FONT size=2&gt;.OnCreateControl();&lt;/P&gt;&lt;P&gt;frmCustomersMaintenanceBrowseDialog.ShowDialog();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;When it runs I get a "stack overflow" on the "this.OnCreateControl()"&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Mon, 14 Apr 2008 13:15:37 GMT</pubDate><dc:creator>Ross L. Rooker, Sr.</dc:creator></item><item><title>RE: BrowseDialog Search freezing issue</title><link>http://forum.strataframe.net/FindPost15593.aspx</link><description>The problem is that the form has not fully loaded at this point.&amp;nbsp; When you do something like this you are always better off overrides the On method versus handling the event since you cannot control the event order.&amp;nbsp; But if you override the On method you can then control at what point your logic will be fired.&amp;nbsp; In this case, I would probably put this in the OnCreateControl method instead of the Load&lt;/P&gt;&lt;P&gt;[codesnippet]Overrides Protected Sub OnCreateControl(...)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyBase.OnCreateControl(...)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyBrowse.ShowDialog()&lt;BR&gt;End SUb[/codesnippet]</description><pubDate>Mon, 14 Apr 2008 11:19:51 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>