<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Thanks everyone i was away for a bit <br>
    </p>
    <p>looks like i was using the wrong key doh.<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 16/07/18 03:28, Gianluigi wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAJ2rqFYGKcmvnSk7C02QO5AdXzT7iBc1xipEs0k76h6gkOhuTw@mail.gmail.com">
      <div dir="ltr">
        <div>Hi Fabien,</div>
        <div>fine code, I vote this :-)</div>
        <div><br>
        </div>
        <div>Regards</div>
        <div>Gianluigi<br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2018-07-15 16:15 GMT+02:00 Fabien
          Bodard <span dir="ltr"><<a
              href="mailto:gambas.fr@gmail.com" target="_blank"
              moz-do-not-send="true">gambas.fr@gmail.com</a>></span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">This is how I'm doing this </div>
            <br>
            <div class="gmail_quote">
              <div dir="ltr">Le dim. 15 juil. 2018 à 15:38, T Lee
                Davidson <<a href="mailto:t.lee.davidson@gmail.com"
                  target="_blank" moz-do-not-send="true">t.lee.davidson@gmail.com</a>>
                a écrit :<br>
              </div>
              <blockquote class="gmail_quote" style="margin:0 0 0
                .8ex;border-left:1px #ccc solid;padding-left:1ex">The
                constant value for Key["ENTER"] (same as Key.Enter)
                should be 16777221.<br>
                (<a
                  href="http://gambaswiki.org/wiki/comp/gb.qt4/key/enter"
                  rel="noreferrer" target="_blank"
                  moz-do-not-send="true">http://gambaswiki.org/wiki/<wbr>comp/gb.qt4/key/enter</a>)<br>
                <br>
                And, the value for Key.Return should be 16777220.<br>
                (<a
                  href="http://gambaswiki.org/wiki/comp/gb.qt4/key/return"
                  rel="noreferrer" target="_blank"
                  moz-do-not-send="true">http://gambaswiki.org/wiki/<wbr>comp/gb.qt4/key/return</a>)<br>
                <br>
                The "ENTER" key is the one on the numeric keypad. The
                "RETURN" key is in the alpha section.<br>
                <br>
                <br>
                -- <br>
                Lee<br>
                <br>
                <br>
                On 07/14/2018 08:23 PM, Shane wrote:<br>
                > gave this a try and its not working<br>
                > <br>
                > my code<br>
                > <br>
                > if key.code = key["ENTER"] then<br>
                > <br>
                > my sent key.code = 65293 and the value for
                key["ENTER"] = 65421<br>
                > <br>
                > i tried this with if key.code = key.enter and got
                the same result whats going on ?<br>
                > <br>
                > cheers Shane.<br>
                > <br>
                > <br>
                > On 14/07/18 23:54, Adam Ant wrote:<br>
                >> As far as I remember, you will need to use the
                KeyRelease event, something along the lines of:<br>
                >><br>
                >> Public Sub MyControl_KeyRelease(???)<br>
                >><br>
                >>   If Key = Key.Return then<br>
                >>      MyControl.Next.Activate ' or
                MyControl.Next.SetFocus<br>
                >>  <br>
                >> or something like that. It's been a year or
                so....<br>
                >> This IIRC works for most controls, maybe not
                gridview and posibly checkbox?<br>
                >><br>
                >> hth<br>
                >> Bruce<br>
                >><br>
                >><br>
                >> On Sat, Jul 14, 2018 at 5:48 PM, Bill
                <bill-lancaster@brackenwood.<wbr>one <mailto:<a
                  href="mailto:bill-lancaster@brackenwood.one"
                  target="_blank" moz-do-not-send="true">bill-lancaster@<wbr>brackenwood.one</a>>>
                wrote:<br>
                >><br>
                >>     I use the Activate event and the LostFocus
                so that either the 'enter' key or the tab key moves to
                the next control after<br>
                >>     the contents of the text box has been
                checked<br>
                >><br>
                >>     Bill<br>
                >><br>
                >><br>
                >><br>
                >>     On 14/07/18 08:29, Shane wrote:<br>
                >><br>
                >>         Yep got that<br>
                >><br>
                >>         but i want to this while in my program
                not the ide<br>
                >><br>
                >>         so in my program i want to press enter
                and it would act like i was pressing the tab key<br>
                >><br>
                >>         hope this make scene<br>
                >><br>
                >>         thanks for your help<br>
                >><br>
                >>         regrades Shane.<br>
                >><br>
                >><br>
                >>         On 14/07/18 15:57, Karl Reinl wrote:<br>
                >><br>
                >>             Am Samstag, den 14.07.2018, 14:33
                +1000 schrieb Shane:<br>
                >><br>
                >>                 how can I enter a value in a
                component and then press enter and have my<br>
                >>                 program tab into the next
                component in the tab order?<br>
                >><br>
                >><br>
                >>                 cheers Shane.<br>
                >><br>
                >>             Salut Shane,<br>
                >><br>
                >>             on a form, choose the property
                window and open the second Tab (think its<br>
                >>             called hierarchy)<br>
                >><br>
                >><br>
                >><br>
                >>         ----[ Gambas mailing-list is hosted by
                <a href="https://www.hostsharing.net" rel="noreferrer"
                  target="_blank" moz-do-not-send="true">https://www.hostsharing.net</a>
                ]----<br>
                >><br>
                >><br>
                >><br>
                >>     ----[ Gambas mailing-list is hosted by <a
                  href="https://www.hostsharing.net" rel="noreferrer"
                  target="_blank" moz-do-not-send="true">https://www.hostsharing.net</a>
                ]----<br>
                >><br>
                >><br>
                >><br>
                >><br>
                >> ----[ Gambas mailing-list is hosted by <a
                  href="https://www.hostsharing.net" rel="noreferrer"
                  target="_blank" moz-do-not-send="true">https://www.hostsharing.net</a>
                ]----<br>
                > <br>
                > <br>
                > <br>
                > <br>
                > ----[ Gambas mailing-list is hosted by <a
                  href="https://www.hostsharing.net" rel="noreferrer"
                  target="_blank" moz-do-not-send="true">https://www.hostsharing.net</a>
                ]----<br>
                > <br>
                <br>
                <br>
                ----[ Gambas mailing-list is hosted by <a
                  href="https://www.hostsharing.net" rel="noreferrer"
                  target="_blank" moz-do-not-send="true">https://www.hostsharing.net</a>
                ]----<span class="HOEnZb"><font color="#888888"><br>
                  </font></span></blockquote>
            </div>
            <span class="HOEnZb"><font color="#888888"><br clear="all">
                <div><br>
                </div>
                -- <br>
                <div dir="ltr"
                  class="m_469376995109322067gmail_signature"
                  data-smartmail="gmail_signature">Fabien Bodard </div>
              </font></span><br>
            <br>
            ----[ Gambas mailing-list is hosted by <a
              href="https://www.hostsharing.net" rel="noreferrer"
              target="_blank" moz-do-not-send="true">https://www.hostsharing.net</a>
            ]----<br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <!--'"--><br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">
----[ Gambas mailing-list is hosted by <a class="moz-txt-link-freetext" href="https://www.hostsharing.net">https://www.hostsharing.net</a> ]----
</pre>
    </blockquote>
    <br>
  </body>
</html>