﻿<?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?)  » textboxes in SF and use of BACKSPACE key, DEL key</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Mon, 29 Jun 2026 01:14:21 GMT</lastBuildDate><ttl>20</ttl><item><title>textboxes in SF and use of BACKSPACE key, DEL key</title><link>http://forum.strataframe.net/FindPost29538.aspx</link><description>If using a textbox from sf (the one I am using is from the MicroFour Infragistics wrapper ultraMaskedEdit with the properties set as follows:&lt;br/&gt;&lt;br/&gt;InputMask = nnnnnnnnn&lt;br/&gt;&lt;br/&gt;Text = 0&lt;br/&gt;&lt;br/&gt;IgnorManageReadOnlyState = False&lt;br/&gt;&lt;br/&gt;The BusinessObject and Binding properties are set correctly.&lt;br/&gt;&lt;br/&gt;When the form displays and the cursor enters the control it is positioned to the left of the 0. If they start typing a 1, then it appends the 0 to the end becoming 10. This is the same on all numeric collumns. Is there a way to have the column to always have the data selected in the control?&lt;br/&gt;&lt;br/&gt;Also, when the user wants to use the DEL key to delete a character in any column numeric or string type, the DEL key does nothing. Is there a way to allow the use of the DEL key? This is quite important.&lt;br/&gt;&lt;br/&gt;Lastly, if it is a numeric and the user tries to remove the 0 by positions the cursor to the right of the 0 and hit the BACKSPACE key, a red screen error appears:&lt;br/&gt;&lt;br/&gt;&lt;span style="FONT-FAMILY: 'Calibri','sans-serif'; font-size: 10pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 'Times New Roman'; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"&gt;&lt;font color=#171717&gt;InvalidCastException &lt;br/&gt;&amp;nbsp; Specified cast is not valid. &lt;br/&gt;&lt;br/&gt;Source &amp;nbsp; &amp;nbsp; : TrustedVALET_BO &lt;br/&gt;&lt;br/&gt;Stack Trace: &lt;br/&gt;&amp;nbsp; &amp;nbsp;at TrustedVALET_BO.tbl_ContractDemurrage_1.FieldDescriptor.SetValue(Object component, Object value) in C:\devel\Projects\Net2008\Strata\trustedValetTeam\TrustedVALET_BO\TrustedVALET_BO\tbl_ContractDemurrage_1.Designer.cs:line 2117 &lt;br/&gt;&amp;nbsp; &amp;nbsp;at System.Windows.Forms.BindToObject.SetValue(Object value) &lt;br/&gt;&amp;nbsp; &amp;nbsp;at System.Windows.Forms.Binding.PullData(Boolean reformat, Boolean force) &lt;/font&gt;&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;span style="FONT-FAMILY: 'Calibri','sans-serif'; font-size: 10pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 'Times New Roman'; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"&gt;&lt;font color=#0000ff&gt;Is there a&amp;nbsp;a workaround to allow the backspace key?&lt;/font&gt;&lt;/span&gt;</description><pubDate>Fri, 11 Feb 2011 08:09:43 GMT</pubDate><dc:creator>Ross L. Rooker, Sr.</dc:creator></item></channel></rss>