Lost Password?

  #1 (permalink)  
Old 04-22-2008, 02:15 PM
QuickDan QuickDan is offline
Newbie
 
Join Date: Apr 2008
Posts: 2
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 04-22-2008, 03:18 PM
Xav's Avatar   
Xav Xav is offline
Code Warrior
 
Join Date: Mar 2008
Location: London, England
Posts: 5,030
Last Blog:
Web slideshow in JavaS...
Rep Power: 43
Xav is a splendid one to beholdXav is a splendid one to beholdXav is a splendid one to beholdXav is a splendid one to beholdXav is a splendid one to beholdXav is a splendid one to beholdXav is a splendid one to behold
Send a message via MSN to Xav
Default Re: Using a CommomDialog in text edition

I thought you use a FontDialog? Never mind. It's good to see you starting out with some tutorials!
__________________
[TRUTH] TcM is the best moderator ever! [/TRUTH]
"Valid XHTML is like sex - everybody claims to have the same goal, but everybody has their own tricks and results vary wildly."
Web Site | Beta Site
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
common dialog



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tutorial: Starting C# with C# 2008 Express Edition Jordan CSharp Tutorials 19 08-08-2008 12:48 PM
How to save the text in a text file ??? kresh7 Visual Basic Programming 0 11-25-2007 10:30 AM
How to style fonts of a text in a simple page? c0de Tutorials 3 09-15-2007 10:08 PM
HTML Basic Formatting clookid Tutorials 14 03-06-2007 03:10 PM


All times are GMT -5. The time now is 08:20 AM.

Contest Stats

John ........ 223.00000
dargueta ........ 168.00000
Xav ........ 164.00000
gaylo565 ........ 18.00000
WingedPanther ........ 15.00000
|pH| ........ 15.00000
Johnnyboy ........ 3.00000
navghost ........ 1.00000

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 66%

Ads