StrataFrame Forum

Browse Dialog

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

By Ger Cannoll - 10/26/2009

I've started to use the Browse Dialog and its working fine.

Can the following be done:

1. On the form in which the Browse Button is , I have  a Text Box

2. I want the user to enter Text in here

3. Then Call the Browse Dialog (With the TextBox.Text as a parameter) and get it to do the search, so that the results browse is displayed

(In other words , I want the user to be able to enter the text to be searched on the Calling screen rather than the Browse Screen and get the  Search done right away)

By Trent L. Taylor - 10/26/2009

Yes. First, you can manually launch the browse dialog by calling the "ShowDialog()" on the browse dialog class. Second, you can initialize search values a number of ways. But in this case, I would just use the InitialValue property in the SearchFields collections. So to combine the two and force the search to happen automatically, you would do this:



Me.BrowseDialog1.SearchFields("FieldName").InitialValue = "MySearchValue"

Me.BrowseDialog1.ShowDialog(True)




From what I recall, you were using VB.NET. If not let me know and I can post a C# sample if necessary.
By Ger Cannoll - 10/26/2009

Hi Trent.

That has worked great... I use C# but was able to translate the code.

Many thanks

By Trent L. Taylor - 10/26/2009

Ah...I will file that in the back of my mind for next time Wink Glad it worked! Smile