The proposed solution leaves somethings to be desired:
1) The namespace environment is undefined. This means, at least in my
standard VB.net 2003 world that SendMessage is NOT defined. Adminttedly this
is a csharp group, but the code sure looks like VB to me
![Smile :) :)](/styles/default/custom/smilies/smile.gif)
))
What makes it interesting is that if you type SendMessage in say the load
event of a form and hold the cursor over it there is a "definition" for it,
but it is private. Similarly if you do a show definition the object browser
suggests that it might be part of windows.forms.controls, but it doesn't
appear in the list of members.
2) According to the doco on the EM_SETTABSTOPS message the array is not
needed in this design. Just set spcaing*-4 and use an wparam = 1 and an
lparam = spacking
3) Why the designers of the class structure did not allow for this
functionality in textboxes is beyond me. They allow for accepting tabs but
not for setting the spacing!
4) All that said, I can't make it work. Suggestions please.
So what gives????? (I recognize that in the proposed code the winapi version
is being used - note passing the handle - and the private one doesn't require
a handle.
2) All that aside I'm not sure that it will work unless the textbox has some
special properties.
--
Regards,
Al Christoph
Senior Consultant and Proprietor
Three Bears Software, LLC
just right software @ just right prices @3bears.biz