StrataFrame Forum

Browse Dialog

http://forum.strataframe.net/Topic15210.aspx

By Ross L. Rooker, Sr. - 3/27/2008

How do I have the Browse Dialog appear before the Maintenance Form when it first displays rather than having to click the BROWSE button.
By Trent L. Taylor - 3/27/2008

Just manually call the SHowDialog of the browse:

MyBrowseDialog.ShowDialog()
By Trent L. Taylor - 3/27/2008

To expand a little, you may want to call this in the OnLoad once the form load logic has executed.  So you could just override the OnLoad or OnShown method on the form, and after the MyBase.OnLoad or MyBase.OnShown call, then call the ShowDialog of the browse:

Protected Overrides Sub OnLoad(ByVal e As System.EventArgs)
    MyBase.OnLoad(e)

    MyBrowse.ShowDialog()
End Sub