﻿<?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?)  » Browse Dialog and Searching Event</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Mon, 21 Sep 2026 09:55:46 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Browse Dialog and Searching Event</title><link>http://forum.strataframe.net/FindPost11206.aspx</link><description>Aye, a mask on the input would be your best bet.</description><pubDate>Wed, 29 Aug 2007 10:14:09 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>Browse Dialog and Searching Event</title><link>http://forum.strataframe.net/FindPost10835.aspx</link><description>Is there a trick to having the Searching Event raised on a subclassed BrowseDialog?&amp;nbsp; I have several subclassed BD's and I can't seem to ever get the Searching Event to fire off.&amp;nbsp; In my one non-subclassed BD, the event gets raised fine and I can go about my business, but on my others it never seems to.&lt;/P&gt;&lt;P&gt;I've tried putting the event handler on the form the BD is on, as well as in the BD designer with no luck.&amp;nbsp; I'm pretty sure I'm missing something easy, but I can't for the life of me figure this one out.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Robin Giltner</description><pubDate>Wed, 29 Aug 2007 10:14:09 GMT</pubDate><dc:creator>Robin J Giltner</dc:creator></item><item><title>RE: Browse Dialog and Searching Event</title><link>http://forum.strataframe.net/FindPost11187.aspx</link><description>Doh, yeah... think I have it.&amp;nbsp; There searching event is getting fired off, but only when the whereclause gets built without errors, as the clause has to be built before you can interact with the values inside it.&amp;nbsp; That only makes&amp;nbsp;a huge amount of sense. :crazy:&lt;/P&gt;&lt;P&gt;So it looks like I'll have to try something else to filter the search criteria the user puts into the searchfield.&amp;nbsp; It keeps failing trying to convert a string to a double on the BuildWhereElement clause.&amp;nbsp; I guess I can&amp;nbsp;use the Mask property on the tetbox to limit input, and see how that goes.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Robin Giltner</description><pubDate>Tue, 28 Aug 2007 15:28:16 GMT</pubDate><dc:creator>Robin J Giltner</dc:creator></item><item><title>RE: Browse Dialog and Searching Event</title><link>http://forum.strataframe.net/FindPost11183.aspx</link><description>Well, I've messed with this as long as I think I can before my head explodes.&lt;/P&gt;&lt;P&gt;I went back and made a simple project with one BusinessObject and one BrowseDialog to the Strataframe Sample, and added some code to the BrowseDialog1.Searching Event to see if I could get it to do something, with no luck.&lt;/P&gt;&lt;P&gt;I'm sure I am missing something here, but can't for the life of me figure this one out.&lt;/P&gt;&lt;P&gt;Any chance you could take a look and point me in the right direction?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Robin Giltner</description><pubDate>Tue, 28 Aug 2007 13:53:03 GMT</pubDate><dc:creator>Robin J Giltner</dc:creator></item><item><title>RE: Browse Dialog and Searching Event</title><link>http://forum.strataframe.net/FindPost10851.aspx</link><description>Yeah, the OnSearching method is the method that is invoked to raise the Searching event.&amp;nbsp; So this is the same as handling the event, but you actually have more control.</description><pubDate>Tue, 14 Aug 2007 08:44:12 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Browse Dialog and Searching Event</title><link>http://forum.strataframe.net/FindPost10846.aspx</link><description>And here I can test the input on the search fields and strip out what shouldn't be there?&amp;nbsp; Users keep wanting to put text into a numeric field in the BrowseDialog.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Robin Giltner</description><pubDate>Tue, 14 Aug 2007 07:40:20 GMT</pubDate><dc:creator>Robin J Giltner</dc:creator></item><item><title>RE: Browse Dialog and Searching Event</title><link>http://forum.strataframe.net/FindPost10843.aspx</link><description>Well, since you are subclassing the BD, just override the OnSearching method.&amp;nbsp; This will give you ultimate control and you can place your code before or after the event.&lt;/P&gt;&lt;P&gt;[codesnippet]Protected Overrides Sub OnSearching(ByVal e As MicroFour.StrataFrame.UI.Windows.Forms.BrowseDialogSearchingEventArgs)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyBase.OnSearching(e)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '-- Add your code&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub[/codesnippet]</description><pubDate>Tue, 14 Aug 2007 06:50:10 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>