Taborder and focus problem

0
0

Hi!

I have a form

In Fom I have panels with controls TextBoxes and Buttons.

I can’t get TextBoxEmail focused when form is shown. I changed tab indexes from 0 to 4 and from 4 to 0 – same result.

Also I can’t get proper tab order. From TextBoxEmail focus goes directly to the last button ForgotPassword and goes up after that.

Any help lease?

 

Also I recall that I read for extension which automatically manages the tab order of controls. Is there such?

Thank you!

My code:

With Me (Me is my form)
.Dock = DockStyle.None
.FormBorderStyle = FormBorderStyle.None
.KeepCentered = True
.BackColor = Color.FromArgb(127, 255, 255, 255)
.Width = 477
.Height = 477
.TabStop = False
.Controls.Add(OpanelFlags)
.Controls.Add(OpanelForgotPassword)
.Controls.Add(OpanelSignIn)
.Controls.Add(OpanelLogin)
.Controls.Add(OpanelPassword)
.Controls.Add(OpanelEmail)
.Controls.Add(OlabelLogo)
.Show()

Me.Focus()
OpanelEmail.Focus()
OTBEmail.Focus()

OTBEmail.TabIndex = 4
OTBPassword.TabIndex = 3
OBLogin.TabIndex = 2
OBSignIn.TabIndex = 1
OBForgotPassword.TabIndex = 0

(

OTBEmail.TabIndex = 0
OTBPassword.TabIndex = 1
OBLogin.TabIndex = 2
OBSignIn.TabIndex = 3
OBForgotPassword.TabIndex = 4

‘Same result

)

 

End With

  • You must to post comments
0
0

Thank you!

I work with the latest version all the time.

Focus on button which is in panel, which is in form do not works at all.

Tab order I fixed with your tab order manager extension.

  • You must to post comments
0
0

Hi,

Sorry but I couldn’t reproduce, everything seems to be working fine.

Tab order is working fine too, and the focus on the text box is also working fine!

Can you tell me what version of Wisej you’re using?

Thank you,
Alaa

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.