<div dir="ltr">I try to explain myself better:<br>You need to activate the gb.desktop component, and then type:<br><br>Public Sub Form_KeyPress() ' Or Key_Release()<br><br> If Key.code = Key.Return Then<br> Desktop.SendKeys("[Tab]")<br> Endif<br><br><div>End</div><div><br></div><div>Regards</div><div>Gianluigi<br></div><br></div><div class="gmail_extra"><br><div class="gmail_quote">2018-07-15 9:18 GMT+02:00 Gianluigi <span dir="ltr"><<a href="mailto:bagonergi@gmail.com" target="_blank">bagonergi@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"><div>And if You use Key.Return?</div><div><br></div><div>Regards</div><div>Gianluigi<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-07-15 2:23 GMT+02:00 Shane <span dir="ltr"><<a href="mailto:buster6seven@gmail.com" target="_blank">buster6seven@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div 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="m_-3226070624667050356m_-5329278948044776941moz-cite-prefix">On 14/07/18 23:54, Adam Ant wrote:<br>
</div>
<blockquote type="cite">
<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.on<wbr>e</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="m_-3226070624667050356m_-5329278948044776941HOEnZb"><font color="#888888"><br>
<br>
Bill</font></span>
<div class="m_-3226070624667050356m_-5329278948044776941HOEnZb">
<div class="m_-3226070624667050356m_-5329278948044776941h5"><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>
<br>
<fieldset class="m_-3226070624667050356m_-5329278948044776941mimeAttachmentHeader"></fieldset>
<br>
<pre>----[ Gambas mailing-list is hosted by <a class="m_-3226070624667050356m_-5329278948044776941moz-txt-link-freetext" href="https://www.hostsharing.net" target="_blank">https://www.hostsharing.net</a> ]----
</pre>
</blockquote>
<br>
</div>
<br><br>
----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>