﻿<?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?)  » end of textbox with  enter or tab</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 18:06:23 GMT</lastBuildDate><ttl>20</ttl><item><title>end of textbox with  enter or tab</title><link>http://forum.strataframe.net/FindPost17557.aspx</link><description>Hi, &lt;BR&gt;So excuse me its my last question for today.&lt;/P&gt;&lt;P&gt;in a simple form i have to corlorizedtexbox&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/10954211-fbc1-427c-a9a8-5da0.JPG"&gt;&lt;/P&gt;&lt;P&gt;when the cursor is on login colorizedtexbox, if user type [tab], the cursor go in pasword colorizedtextbox&lt;BR&gt;but if user type [ENTER], the cursor&amp;nbsp; rest in login zone.&lt;/P&gt;&lt;P&gt;How make for&amp;nbsp; moving the cursor from login zone to paswword zone with the [ENTRE] KEY on the keyboard.&lt;/P&gt;&lt;P&gt;Thank's&lt;/P&gt;&lt;P&gt;Eric</description><pubDate>Wed, 02 Jul 2008 17:18:20 GMT</pubDate><dc:creator>Eric Leissler</dc:creator></item><item><title>RE: end of textbox with  enter or tab</title><link>http://forum.strataframe.net/FindPost17562.aspx</link><description>hi, &lt;/P&gt;&lt;P&gt;thank's, i made this code in keypress method&lt;BR&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;/P&gt;&lt;P&gt;Private&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt; Textbox1_KeyPress(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;ByVal&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt; sender &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Object&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt;, &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;ByVal&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt; e &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt; System.Windows.Forms.KeyPressEventArgs) &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Handles&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; Textbox1.KeyPress&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;If&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; e.KeyChar = Chr(13) &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Then&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Me&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.Textbox2.Focus()&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;If&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;At running, it's ok. &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;very thanks &lt;BR&gt;it'all for today , it one hour of mornig here in France.&lt;BR&gt;Have a good day &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;It's time to sleep for me.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Eric&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description><pubDate>Wed, 02 Jul 2008 17:18:20 GMT</pubDate><dc:creator>Eric Leissler</dc:creator></item><item><title>RE: end of textbox with  enter or tab</title><link>http://forum.strataframe.net/FindPost17561.aspx</link><description>Sorry, I focused on the ColorizedTextBox versus the Enter problem.&amp;nbsp; Windows standard uses a Tab versus a Enter.&amp;nbsp; So to implement an Enter, you can implement this logic yourself by inheriting the StrataFrame texbox ( or any textbox for that matter) and then override the ProcessCmdKey method and check for the Enter.&amp;nbsp; If the enter was pressed, then you would just call the SelectNext method on the textbox.&lt;/P&gt;&lt;P&gt;This related to standard .NET over StrataFrame, but maybe this will get you pointed in the right direction.</description><pubDate>Wed, 02 Jul 2008 16:57:37 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: end of textbox with  enter or tab</title><link>http://forum.strataframe.net/FindPost17559.aspx</link><description>well, &lt;/P&gt;&lt;P&gt;I try with a texbox, but it's the same problem. &lt;BR&gt;i woud to valid my texbox with enter key. How can i do ??&lt;/P&gt;&lt;P&gt;Thank's</description><pubDate>Wed, 02 Jul 2008 16:36:32 GMT</pubDate><dc:creator>Eric Leissler</dc:creator></item><item><title>RE: end of textbox with  enter or tab</title><link>http://forum.strataframe.net/FindPost17558.aspx</link><description>You really shouldn't be using a ColorizedTextBox as this control has been deprecated and actually the control taking it's place is the new SyntaxEditor.&amp;nbsp; The ColorizedTextBox is nothing more than a RTF with additional logic...the SyntaxEditor control goes a lot further, but in either case, you should be using a different control.&lt;/P&gt;&lt;P&gt;You should be using a TextBox or MaskedTextbox for this type of data entry as they are might lighter weight and this is the type of area for which they are inteded versus an RTF control.</description><pubDate>Wed, 02 Jul 2008 16:29:33 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>