[Gambas-user] Accelerator or Shortcut key to a textbox

Charlie Ogier charlie at cogier.com
Thu Oct 17 19:03:17 CEST 2019


You can't use [Alt]+U as this could put the letter 'U' in some other 
TextBox But try this using [Alt]+[Down Arrow]

Public Sub Form_KeyPress()

   If Key.Code = Key.Down And If Key.Alt Then TextBox1.SetFocus

End


On 17/10/2019 09:33, KKing wrote:
> Is there a way to set Accelerator or Shortcut key for a textbox?
>
> e.g. for a button you set the Text as "&Update" and Alt+U
>
> K.
>
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----



More information about the User mailing list