Wrox Programmer Forums
|
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 February 22nd, 2006, 07:00 AM
Authorized User
 
Join Date: Aug 2003
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Kaustav Send a message via Yahoo to Kaustav
Default RichTextBox Help

Suppose I have "Hi there" text written previously in a rich text box. But then on click of a button I want to enter some more text, say "Kaustav" into the rich text box in Bold.How can I do that.

eg.
RTB contains: Hi there
I click a button to enter "Kaustav" in bold
RTB contains: Hi there Kaustav
Bye

------------------
Kaustav
__________________
------------------
Kaustav
 
Old February 22nd, 2006, 03:53 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

.selStart = Len(.Text) <- set the insertion point at the end of the text
.selText = "Kaustav" <- add this from the insertion point

Marco





Similar Threads
Thread Thread Starter Forum Replies Last Post
RichTextBox Query sandeep Infopath 0 June 13th, 2007 08:03 PM
Using different colors and fonts in a richtextbox pascali70 C# 1 December 14th, 2006 08:45 AM
How to Print RichTextBox marcusbris VB How-To 0 December 2nd, 2006 09:29 AM
Deleting text from a RichTextBox wslyhbb C# 0 October 29th, 2005 08:00 PM
What is the use of a richtextbox? snowydust VB How-To 2 July 28th, 2004 11:05 AM





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