Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi:

 

Has anyone encountered their application tabs stopping working? There is no one thing that does this...but I have noticed it most when I click on a text field and then when I try to tab to the next control, I can't.

 

Doesn't always happen...I'm not trapping any key events on the text fields in question.

 

Thoughts?

 

Eric

  • Leaders
Posted
If a textbox is set to accept tabs as text input then it will not allow you to tab to the next control because the tab is processed as a character being typed into the box. You will probably also see this with RichTextBoxes and maybe other text-based controls.
[sIGPIC]e[/sIGPIC]
Posted

Thanks for the thought, but that's not it. My textboxes are not set to accept tabs as text. However, I was able to find a work around (from another post on this forum) and I'm using the key preview property of my main form and overriding the key pressed event to pass tabs through.

 

Its a hack, but seems to get the job done. If you are interested:

 

Protected Overrides Sub OnKeyPress(ByVal e As KeyPressEventArgs)

If VarInitialLoadComplete Then

If e.KeyChar = Microsoft.VisualBasic.ChrW(9) Then

MyBase.ProcessTabKey(True)

End If

End If

End Sub

 

Thanks for the response!

 

Eric

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...