You are not logged in.

Dear visitor, welcome to Jabaco - Community. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Gerhard

Beginner

  • "Gerhard" started this thread

Posts: 14

Date of registration: Apr 16th 2010

  • Send private message

1

Tuesday, May 11th 2010, 9:49am

Personal Framework

Hello to all !



First I say "Thank You" for your help in several questions. This is a real great community !



A1880 told me some weeks ago, that I should create my own framework, because I need the Enter-Key to jump from one control to the next. You know, I'm very new here so I need some help in doing this framework.

So please can you tell me how I do this, or can you tell me where I find a discription for doing that.



Once again: Thanks a lot

Gerhard

OlimilO

Intermediate

  • "OlimilO" is male

Posts: 277

Date of registration: Jan 18th 2009

Location: Germany

Occupation: software engineer

  • Send private message

2

Tuesday, May 11th 2010, 2:18pm

Enter key to jump from one control to the next

Quoted

I need the Enter-Key to jump from one control to the next

Jabaco Source

1
2
3
4
5
6
7
8
9
10
11
12
13
'http://www.rgagnon.com/javadetails/java-0254.html
Public Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)
   'java#awt#Event#KeyEvent.VK_ENTER
   If KeyCode = KeyCodeConstants.vbKeyReturn Then '13 
      Text1.Parent.transferFocus
   End If
End Sub
Public Sub Text2_KeyDown(KeyCode As Integer, Shift As Integer)
   If KeyCode = 13 Then Text2.Parent.transferFocus  
End Sub
Public Sub Text3_KeyDown(KeyCode As Integer, Shift As Integer)
   If KeyCode = 13 Then Text3.Parent.transferFocus
End Sub


regards

OlimilO

Gerhard

Beginner

  • "Gerhard" started this thread

Posts: 14

Date of registration: Apr 16th 2010

  • Send private message

3

Tuesday, May 11th 2010, 2:31pm

Thank you OlimilO !



I have to do this in every control, but it's easy to handle.

transferFocus ... never heared about this methode.



Best regards

Gerhard

nbarakat

Beginner

Posts: 11

Date of registration: May 24th 2010

  • Send private message

4

Tuesday, May 25th 2010, 4:19pm

Can't this be done as part of a usercontrol? By changing the keycode from 13 to vbTab?

Rate this thread
WoltLab Burning Board