﻿<?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?)  » Store Browse Dialog Entries</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Thu, 28 May 2026 15:03:42 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Store Browse Dialog Entries</title><link>http://forum.strataframe.net/FindPost25195.aspx</link><description>Thanks guys :)</description><pubDate>Thu, 12 Nov 2009 18:09:12 GMT</pubDate><dc:creator>Aaron Young</dc:creator></item><item><title>Store Browse Dialog Entries</title><link>http://forum.strataframe.net/FindPost25173.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;Is it possible to retain previous browse dialog search field entries if a browse is re-opened? For example, user opens the initial browse window, enters some search values, closes the browse window and later re-opens the browse &amp;#119;indow. Instead of starting with a cleared browse dialog, is it possible to retain the previously entered search values?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Aaron</description><pubDate>Thu, 12 Nov 2009 18:09:12 GMT</pubDate><dc:creator>Aaron Young</dc:creator></item><item><title>RE: Store Browse Dialog Entries</title><link>http://forum.strataframe.net/FindPost25180.aspx</link><description>Yes.  You will want to use the InitializeSearchFields event to set the initial search values.  That is actually the purpose of this event.  It is called before the BrowseDialog is shown allowing you to initialize any search fields.  You will set the InitialValue property of a search field:&lt;br&gt;
&lt;br&gt;
[b]InitializeSearchFields Event[/b]&lt;br&gt;
[codesnippet]Me.BrowseDialog1.SearchFields(0).InitialValue = "Smith"[/codesnippet]&lt;br&gt;
&lt;br&gt;
Then you can save off the values in the SearchValueChanged event.  The purpose of this event is to give you access directly to the editor control as well as the search field element.  You may need to add a test on the type of object (i.e. MaskedTextBox, Date control, etc.).  But if you are entering a string value, it will be a MaskedTextBox and you would retrieve the value like this:&lt;br&gt;
&lt;br&gt;
[b]SearchValueChanged Event[/b]&lt;br&gt;
[codesnippet]Dim x As String = e.SourceControl.Text[/codesnippet]</description><pubDate>Thu, 12 Nov 2009 08:27:08 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Store Browse Dialog Entries</title><link>http://forum.strataframe.net/FindPost25174.aspx</link><description>I searched for keyword "save browse settings" and found some good suggestions but not a lot of helpful&amp;nbsp;detail or examples.</description><pubDate>Wed, 11 Nov 2009 19:05:11 GMT</pubDate><dc:creator>Russell Scott Brown</dc:creator></item></channel></rss>