I wonder how can i crete a texteditor that can perform a
tab in my textbox without having my application switching
control to the next tabindex.
Is there a way to do that.
If there is i don't it and would really appreciate.
Printable View
I wonder how can i crete a texteditor that can perform a
tab in my textbox without having my application switching
control to the next tabindex.
Is there a way to do that.
If there is i don't it and would really appreciate.
Well I've done a similar thing in the past by calling code below in, say a rich text box's GotFocus event:
Hope it helps!Code:Private Sub SetTabsEnabled(Optional ByVal NewSetting As Boolean = True)
Dim X As Control
On Error Resume Next
For Each X In Me.Controls
X.TabStop = NewSetting
Next
On Error GoTo 0
End Sub
Private Sub rtfBody_GotFocus()
SetTabsEnabled False
End Sub
Private Sub rtfBody_LostFocus()
SetTabsEnabled
End Sub
Toot
Thanks!
It helped me very much.