snippet library logo
in category
Visual Basic / Text / Text effects
Snippet details
ID: 467
Viewed: 1475
Added: 2002-08-19
Version:

User Rated at:
Rate This:
Snippets in this catagory         
Show Printable Version
The subroutines I have created allow you
to augment the text by adding special
effects such as bold, underline, italics
and one of three colours (Red, Blue or
Green).

The effects are enabled by adding
control codes to the text to be displayed. These codes consist of a tilde (~) followed by a one or two character
modifier. The current list is:

~B Toggles bold on and off
~I Toggles italics on and off
~U Toggles underline on and off
~CR Switches to red text
~CB Switches to blue text
~CG Switches to green text
~CN Switches back to normal (black) text.

The text is displayed in a picture control and will be word wrapped at the edge of the control.

The format of the subroutine call is:

DisplayText picText, sText

Where "picText" is the name of the picture control you wish to display the text in and "sText" is the text string to
display. For the purposes of the sample code, the text to be displayed is defined in the Form_Load procedure.

General Details
Snippet uploaded by: snippet
Email : webmaster@snippetlibrary.com
Snippet By: Unknown

Snippet By:    Unknown
Declarations
Highlight All
Code
Highlight All




No Reviews to show


Please completely fill out the form below if you want to review this snippet. All reviews are subject to validation.


Subject:

Reviewed By:

Write a review:





Terms of Conditions
Powered By
Avian Hosting
© 2005 snippetlibrary.com All Rights Reserved.