Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 27th, 2006, 10:58 AM
Registered User
 
Join Date: Oct 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Changing only selected text's font in a rich text

I am developing a program called Notepad XP and i want to know: how do i only change the selected text's font like that in a rich text box and how to add an undo/redo function but i am more concerned about the font. Any help will be great :)

"For justice, freedom and a hard boiled egg"
 
Old November 10th, 2006, 05:03 AM
Authorized User
 
Join Date: Sep 2003
Posts: 73
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to prabodh_mishra
Default

RichTextBox1.SelFontName = <Name of the font>
Similarly you have few more properties with "Sel" prefix to manipulate selected text.

Cheers,
Prabodh





Similar Threads
Thread Thread Starter Forum Replies Last Post
Rich Text in Oracle aliirfan84 Oracle 0 February 21st, 2007 10:14 AM
Changing font in dropdown box Bjoe HTML Code Clinic 4 April 24th, 2006 01:34 PM
how to get font ,color,font size of text in win32 satishsatao Visual C++ 0 April 5th, 2006 05:05 AM
Rich Text Box spike010101 Pro VB 6 1 September 29th, 2004 02:37 AM
Changing the font size in a statusbar xgbnow C++ Programming 0 February 3rd, 2004 04:05 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.