<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>gave this a try and its not working <br>
    </p>
    <p>my code <br>
    </p>
    <p>if key.code = key["ENTER"] then</p>
    <p>my sent key.code = 65293 and the value for key["ENTER"] = 65421</p>
    <p>i tried this with if key.code = key.enter and got the same result
      whats going on ?</p>
    <p>cheers Shane.<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 14/07/18 23:54, Adam Ant wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAJG1rwb62YYJx+Um9jcKtjN+mswTmV92Ao9pn7=2VoVTxrRzbg@mail.gmail.com">
      <div dir="ltr">
        <div>As far as I remember, you will need to use the KeyRelease
          event, something along the lines of:</div>
        <div><br>
        </div>
        <div>Public Sub MyControl_KeyRelease(???)</div>
        <div><br>
        </div>
        <div>  If Key = Key.Return then</div>
        <div>     MyControl.Next.Activate ' or MyControl.Next.SetFocus</div>
        <div>  <br>
        </div>
        <div>or something like that. It's been a year or so....</div>
        <div>This IIRC works for most controls, maybe not gridview and
          posibly checkbox?</div>
        <div><br>
        </div>
        <div>hth</div>
        <div>Bruce</div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Sat, Jul 14, 2018 at 5:48 PM, Bill <span
            dir="ltr"><<a
              href="mailto:bill-lancaster@brackenwood.one"
              target="_blank" moz-do-not-send="true">bill-lancaster@brackenwood.one</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">I use the
            Activate event and the LostFocus so that either the 'enter'
            key or the tab key moves to the next control after the
            contents of the text box has been checked<span
              class="HOEnZb"><font color="#888888"><br>
                <br>
                Bill</font></span>
            <div class="HOEnZb">
              <div class="h5"><br>
                <br>
                <br>
                On 14/07/18 08:29, Shane wrote:<br>
                <blockquote class="gmail_quote" style="margin:0 0 0
                  .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  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>
                  <blockquote class="gmail_quote" style="margin:0 0 0
                    .8ex;border-left:1px #ccc solid;padding-left:1ex">
                    Am Samstag, den 14.07.2018, 14:33 +1000 schrieb
                    Shane:<br>
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      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>
                    </blockquote>
                    Salut Shane,<br>
                    <br>
                    on a form, choose the property window and open the
                    second Tab (think its<br>
                    called hierarchy)<br>
                  </blockquote>
                  <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>
                </blockquote>
                <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>
              </div>
            </div>
          </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>