View Single Post
  #1 (permalink)  
Old 04-22-2008, 03:15 PM
QuickDan QuickDan is offline
Newbie
 
Join Date: Apr 2008
Posts: 2
Credits: 0
Rep Power: 0
QuickDan is on a distinguished road
Default Using a CommomDialog in text edition

The commonDialog control can chage the color, size and others with text.

To use it, you shoud to have a RichTextBox and a CommonDialog.

The functions can to be executeds any events, like all functions.

Up next, have a example of CommonDialog functions for text using.

* To change the color:

CommonDialog.ShowColor 'to you select a color
RichTextBox.SelColor = CommonDialog.Color

* To change the size, face, bold, italic, strike:

CommonDialog.Flags = 3
ComonDialog.ShowFont
RichTextBox.SelFontSize = CommonDialog.FontSize
RichTextBox.SelFontFace = CommonDialog.FontFace
RichTextBox.SelStrikeThru = CommonDialog.StrikeThru

* To save files:

CommonDialog.ShowSave
RichTextBox.SaveFile CommonDialog.FileName

It's a beggining instruction, but I'm being happy to can post
Reply With Quote

Sponsored Links