Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> Visual Basic >> Snippet

Richtextbox - word wrap


'On - set rightmargin very small
txtCode.RightMargin = txtCode.Width - 25

'0ff - set right margin very wide (1001 is arbitrary width)
txtCode.RightMargin = 1001 * frmMain.TextWidth( "a" )