﻿<?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?)  » Invalid Input in Browse Dialog</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 04:52:07 GMT</lastBuildDate><ttl>20</ttl><item><title>Invalid Input in Browse Dialog</title><link>http://forum.strataframe.net/FindPost16863.aspx</link><description>I have a sales order window with the standard, run-of-the-mill browse dialog.&amp;nbsp; It works fine.&amp;nbsp; The first search field in the search list is the Order ID.&amp;nbsp; This is an integer field.&amp;nbsp; The browse dialog presents a textbox control for the user to enter an Order ID.&amp;nbsp; If a user enters anything other than numeric characters (0-9), then the system generates two (2) identical exceptions: "Input string was not in a correct format."&amp;nbsp; This is quite frustrating for a number (pardon the pun) of reasons: 1)&amp;nbsp; The user gets slapped with a error handling event which shouldn't even be happening; 2)&amp;nbsp; I am being sent two trouble tickets for each single event that occurs.&amp;nbsp; 3)&amp;nbsp; The application (not StrataFrame...I am positive that I am&amp;nbsp;doing something wrong)&amp;nbsp;looks like it cannot even handle simple data conversions at a very basic level.&lt;/P&gt;&lt;P&gt;:blink:&lt;/P&gt;&lt;P&gt;What do I do to solve this problem?&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR&gt;Bill</description><pubDate>Fri, 06 Jun 2008 08:37:03 GMT</pubDate><dc:creator>Bill Cunnien</dc:creator></item><item><title>RE: Invalid Input in Browse Dialog</title><link>http://forum.strataframe.net/FindPost16880.aspx</link><description>Yes, you will want to use a mask.&amp;nbsp; That is why it is avaialble on a search field item.&amp;nbsp; You can refer to the standard .NET help docs on this one as it is just a standard SF Masked Text box&amp;nbsp;which inherits from a System.Windows.Forms.MaskedTextBox.&amp;nbsp; You could also&amp;nbsp;drop one on a form and play with the masked settings until you get what you want and then apply that&amp;nbsp;to your search field.&amp;nbsp; But more than likely you will want to supply:&lt;/P&gt;&lt;P&gt;[codesnippet]00000[/codesnippet]&amp;nbsp;&lt;/P&gt;&lt;P&gt;as the mask.</description><pubDate>Fri, 06 Jun 2008 08:37:03 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Invalid Input in Browse Dialog</title><link>http://forum.strataframe.net/FindPost16865.aspx</link><description>Is the answer the "field mask?"&lt;/P&gt;&lt;P&gt;If so, what mask would I use?&amp;nbsp; I currently have a 5 digit Order ID.&amp;nbsp; If I make the mask #####, then as soon as the ID hits six digits, I will have to rollout and update.&amp;nbsp; What mask will work here?&lt;/P&gt;&lt;P&gt;Or, is there another way?&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR&gt;Bill</description><pubDate>Thu, 05 Jun 2008 14:19:35 GMT</pubDate><dc:creator>Bill Cunnien</dc:creator></item></channel></rss>