Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tab Stops in a RichTextBox

Status
Not open for further replies.

dqrose

Technical User
Mar 17, 2006
24
GB
Is there any way I can change the width of the tab stop when displaying rich text in a RichTextBox? I've tried working through all the properties, but I can't find anything that looks relevant, and my online help doesn't seem to cover this.

Many thanks for any help offered.
 
The traditional method involves sending an EM_SETTABSTOPS message to the RichTextBox. A keyword search here or on Google should find a relevant example

An alternative is to use the tom interface to the underlying richedit control (which sounds harder, but is actually fairly easy and gives you much more flexibility). A keyword search in this forum should find any number of my posts describing how to get at and use the tom interface
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top