﻿<?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 and character-values</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sat, 09 May 2026 12:54:37 GMT</lastBuildDate><ttl>20</ttl><item><title>Textboxes and character-values</title><link>http://forum.strataframe.net/FindPost28381.aspx</link><description>Hi there,&lt;br/&gt;&lt;br/&gt;I found a problem today which I could solve, but I am not sure, if this is the right way, so I would like to ask you, how you have solved this.&lt;br/&gt;&lt;br/&gt;I want my textboxes to behave like textboxes do in VFP. This means, a textbox (I am only talking about textboxes filled with string-value) is filled with the trimmed value from the table and is in insert-mode.&lt;br/&gt;&lt;br/&gt;Now my standard-textbox ist filled with a padded value (full length of a field) and the first time I entered into a textbox I was wandering why I could type and type and nothing happened. &lt;br/&gt;&lt;br/&gt;Then I set Autoadjustlength to False and increased maxlength. Now I could type but I like the idea of setting a maxlength for a character-field.&lt;br/&gt;&lt;br/&gt;Then I read a bit through some threads in the forum, started the BO-Mapper and trimmed my char-fields and set the BindingUpdateMode to OnValidation. But then the field was not saved. Finally I put a little "helper-field" on the form, which receives focus in my save-method (and then hides again). Now everything is working but I am asking myself, if this is ok? How do you handle this, especially if you want to behave textboxes like the way I have described?&lt;br/&gt;&lt;br/&gt;Best regards&lt;br/&gt;&lt;br/&gt;Thomas</description><pubDate>Thu, 16 Sep 2010 17:13:37 GMT</pubDate><dc:creator>Thomas Holste</dc:creator></item><item><title>RE: Textboxes and character-values</title><link>http://forum.strataframe.net/FindPost28415.aspx</link><description>Insert-mode is the default for most controls that take text, so that should be easy.</description><pubDate>Thu, 16 Sep 2010 17:13:37 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Textboxes and character-values</title><link>http://forum.strataframe.net/FindPost28396.aspx</link><description>Hi Edhy,&lt;br/&gt;&lt;br/&gt;thanks for the tip, I will try it.&lt;br/&gt;&lt;br/&gt;By "Insert-Mode" I mean that, when entered, a character is added to the content of a field. &lt;br/&gt;&lt;br/&gt;In Overwrite.Mode an existing character would be replaced by the new typed char.&lt;br/&gt;&lt;br/&gt;Best regards&lt;br/&gt;&lt;br/&gt;Thomas</description><pubDate>Thu, 16 Sep 2010 01:40:23 GMT</pubDate><dc:creator>Thomas Holste</dc:creator></item><item><title>RE: Textboxes and character-values</title><link>http://forum.strataframe.net/FindPost28382.aspx</link><description>Hi Thomas,&lt;br/&gt;&lt;br/&gt;&lt;span&gt;[quote]&lt;/span&gt;&lt;span id="ctl00_ctlContentPlaceHolder_ctl00_ctlTopic_ctlPanelBar_ctlTopicsRepeater_ctl01_lblFullMessage"&gt;I want my textboxes to behave like textboxes do in VFP. This means, a textbox (I am only talking about textboxes filled with string-value) is filled with the trimmed value from the table and is in insert-mode.&lt;/span&gt;&lt;span&gt;[/quote]&lt;/span&gt;&lt;br/&gt;If you use Varchar field types in your tables, then it will behave as you want.&amp;nbsp; What do you mean by "insert-mode"?</description><pubDate>Wed, 15 Sep 2010 13:05:03 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item></channel></rss>