<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">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">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">https://www.hostsharing.net</a> ]----<br>
</div></div></blockquote></div><br></div>