I think that you have to use the Win32 API, something like this (VB.NET
code, but easy to follow):
Friend Shared Sub SetTextBoxTabStops(ByVal ctlTextBox As TextBox, ByVal
iNumberOfSpacesPerTab As Integer)
Const EM_SETTABSTOPS As Integer = &HCB
Const NUM_TABS As Integer = 10
Dim iCounter As Integer
Dim iArray(NUM_TABS) As Integer
For iCounter = 0 To NUM_TABS
iArray(iCounter) = iNumberOfSpacesPerTab * 4 * (iCounter + 1)
Next
SendMessage(ctlTextBox.Handle, EM_SETTABSTOPS, NUM_TABS, iArray)
End Sub
--
Best regards,
Carlos J. Quintero
MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com
"PLEE" <PL**@discussions.microsoft.com> escribió en el mensaje
news:DB**********************************@microsof t.com...
Is there a easy way to set the tab size in a multiline textbox object?
For
example, I want to change the tab character to be 4 spaces.